X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fpre-commit;h=19ec8061817e141735a87d04c8da7ef29f7108d7;hb=f8b17d94a1867e7cc01782c9301ccb718de0f9c2;hp=6f84c41524e31d1aabd689c71dd37550e094ca0c;hpb=bdb37bdbfdc46a64631c0fb97d0d86540076165e;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