home · contact · privacy
Fix pre-commit hook not aborting commit on failed unit tests.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 05:20:33 +0000 (07:20 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 05:20:33 +0000 (07:20 +0200)
scripts/pre-commit

index 19ec8061817e141735a87d04c8da7ef29f7108d7..c92a5eb0f8462356d31c4bc64c434bfd4a46a17e 100755 (executable)
@@ -9,8 +9,8 @@ for dir in $(echo '.' 'plomtask' 'tests'); do
     python3 -m pylint ${dir}/*.py
 done
 echo "Running unittest-parallel on tests/."
-set +e
 unittest-parallel -t . -s tests/ -p '*.py'
+set +e
 rm test_db:*.*
 set -e
 exit 0