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/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/tasks?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