From: Christian Heller Date: Thu, 30 May 2024 05:20:33 +0000 (+0200) Subject: Fix pre-commit hook not aborting commit on failed unit tests. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/day?a=commitdiff_plain;h=41f24ba3416bc5be3773983356fc8288543b0c42;p=plomtask Fix pre-commit hook not aborting commit on failed unit tests. --- diff --git a/scripts/pre-commit b/scripts/pre-commit index 19ec806..c92a5eb 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -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