@@ -112,27 +112,14 @@ DEBUG_AFRT="$CARGO_TARGET_DIR/debug/awesome_file_renaming_tool"
112112echo " === Running tests with new name ==="
113113cargo test
114114
115- echo " === Running $DEBUG_AFRT init to add .awesome_file_renaming_tool/ to .gitignore"
116- " $DEBUG_AFRT " init
117-
115+ # .renamify/ should have already been renamed in the .gitignore
118116if ! rg .awesome_file_renaming_tool/ .gitignore; then
119117 echo " ERROR: Did not find .awesome_file_renaming_tool/ in .gitignore!"
120118 cat .gitignore
121119 exit 1
122120fi
123121echo " ✓ Found .awesome_file_renaming_tool/ in .gitignore"
124122
125- echo " === Committing change to .gitignore"
126- # Set git user config if not already set
127- if ! git config user.email > /dev/null 2>&1 ; then
128- git config --global user.email " e2e.test@example.com"
129- fi
130- if ! git config user.name > /dev/null 2>&1 ; then
131- git config --global user.name " renamify e2e test"
132- fi
133- git add .gitignore
134- git commit -m " Added .awesome_file_renaming_tool/ to .gitignore"
135-
136123echo " === Testing awesome_file_renaming_tool rename back to renamify ==="
137124# Use awesome_file_renaming_tool to rename itself back
138125" $DEBUG_AFRT " rename awesome_file_renaming_tool renamify --preview summary --yes
@@ -161,5 +148,8 @@ REL_RENAMIFY="$CARGO_TARGET_DIR/release/renamify"
161148
162149" $REL_RENAMIFY " --version
163150
151+ # Remove left-over artifacts (history dirs for awesome_file_renaming_tool)
152+ rm -rf .awesome_file_renaming_tool renamify-core/.awesome_file_renaming_tool
153+
164154ensure_working_directory_is_clean " after round-trip"
165155echo " ✓ Working directory is clean - round-trip successful!"
0 commit comments