home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edafc35
)
Fix pre-commit hook not aborting commit on failed unit tests.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 30 May 2024 05:20:33 +0000
(07:20 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 30 May 2024 05:20:33 +0000
(07:20 +0200)
scripts/pre-commit
patch
|
blob
|
history
diff --git
a/scripts/pre-commit
b/scripts/pre-commit
index 19ec8061817e141735a87d04c8da7ef29f7108d7..c92a5eb0f8462356d31c4bc64c434bfd4a46a17e 100755
(executable)
--- 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