Skip to content

Commit a768642

Browse files
better trash removal
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 35ef63e commit a768642

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/run_all_tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ uv pip install -e "..[full]"
7272

7373
# cleanup
7474
deactivate
75-
# trash test_venv temp
76-
rm -r test_venv temp wdoc_user_cache_dir
75+
# trash test_venv temp if present
76+
[ -e "temp" ] && rm -r temp
77+
[ -e "test_env" ] && rm -r test_env
78+
[ -e "wdoc_user_cache_dir" ] && rm -r wdoc_user_cache_dir
79+
[ -e "__pycache__" ] && rm -r __pycache__
7780

7881
cd ..
7982
echo "Succesfuly ran all tests"

0 commit comments

Comments
 (0)