From: Christian Heller Date: Wed, 29 May 2024 21:30:51 +0000 (+0200) Subject: On pre-commit hook run, clean up potential test db files. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/gitweb.js?a=commitdiff_plain;h=3b97ae2a26cbc80983d56ee5d0b4ac5334038467;p=plomtask On pre-commit hook run, clean up potential test db files. --- diff --git a/scripts/pre-commit b/scripts/pre-commit index 6f84c41..e4493a6 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -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