home · contact · privacy
In pre-commit hook, re-instate deletion of test DB files.
[plomtask] / scripts / pre-commit
index 6f84c41524e31d1aabd689c71dd37550e094ca0c..19ec8061817e141735a87d04c8da7ef29f7108d7 100755 (executable)
@@ -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