From 41f24ba3416bc5be3773983356fc8288543b0c42 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 30 May 2024 07:20:33 +0200 Subject: [PATCH] Fix pre-commit hook not aborting commit on failed unit tests. --- scripts/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2