From 3b97ae2a26cbc80983d56ee5d0b4ac5334038467 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 29 May 2024 23:30:51 +0200
Subject: [PATCH] On pre-commit hook run, clean up potential test db files.

---
 scripts/pre-commit | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/pre-commit b/scripts/pre-commit
index 6f84c41..e4493a6 100755
--- a/scripts/pre-commit
+++ b/scripts/pre-commit
@@ -9,5 +9,8 @@ for dir in $(echo '.' 'plomtask' 'tests'); do
     python3 -m pylint ${dir}/*.py
 done
 echo "Running unittest on tests/."
+set +e
 python3 -m unittest tests/*.py
+rm test_db:*.*
+set -e
 exit 0
-- 
2.30.2