X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fpre-commit;h=19ec8061817e141735a87d04c8da7ef29f7108d7;hb=63073c2c05785d2b5539780dd5bc40adff57aab1;hp=6f84c41524e31d1aabd689c71dd37550e094ca0c;hpb=5e3c633f1994329297999899790e69d28516934b;p=plomtask
diff --git a/scripts/pre-commit b/scripts/pre-commit
index 6f84c41..19ec806 100755
--- a/scripts/pre-commit
+++ b/scripts/pre-commit
@@ -8,6 +8,9 @@ for dir in $(echo '.' 'plomtask' 'tests'); do
echo "Running pylint on ${dir}/ â¦"
python3 -m pylint ${dir}/*.py
done
-echo "Running unittest on tests/."
-python3 -m unittest tests/*.py
+echo "Running unittest-parallel on tests/."
+set +e
+unittest-parallel -t . -s tests/ -p '*.py'
+rm test_db:*.*
+set -e
exit 0