home · contact · privacy
On pre-commit hook run, clean up potential test db files.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 29 May 2024 21:30:51 +0000 (23:30 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 29 May 2024 21:30:51 +0000 (23:30 +0200)
scripts/pre-commit

index 6f84c41524e31d1aabd689c71dd37550e094ca0c..e4493a6f34eb279064d6e49e23ea02039f8f4e06 100755 (executable)
@@ -9,5 +9,8 @@ for dir in $(echo '.' 'plomtask' 'tests'); do
     python3 -m pylint ${dir}/*.py
 done
 echo "Running unittest on tests/."
+set +e
 python3 -m unittest tests/*.py
+rm test_db:*.*
+set -e
 exit 0