home · contact · privacy
Fix pre-commit script failing to delete test DBs based on new filename format.
[plomtask] / scripts / pre-commit
index 6f84c41524e31d1aabd689c71dd37550e094ca0c..7abafb9cd9de85b4790b659cf2cc22fa13353db7 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/."
+unittest-parallel -t . -s tests/ -p '*.py'
+set +e
+rm test_db:*
+set -e
 exit 0