summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 38c3375d207..260702ffc81 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1180,6 +1180,10 @@ def collocatedTest(additionalOptions = ""):
appVerifierAfterTestEnd([exe])
def cleanDbDir(path):
+ if os.path.exists(os.path.join(path, "__Freeze", "lock")):
+ os.remove(os.path.join(path, "__Freeze", "lock"))
+ if os.path.exists(os.path.join(path, "__Freeze")):
+ os.rmdir(os.path.join(path, "__Freeze"))
for filename in [ os.path.join(path, f) for f in os.listdir(path) if f != ".gitignore" and f != "DB_CONFIG" ]:
os.remove(filename)