commit 43e53c7bd14c16427ffddf1c08abbbc844e96114
parent 9c5e10909b878649cecc0c0d32a8d25511f6aad6
Author: MS <ms@taler.net>
Date: Mon, 7 Dec 2020 14:44:28 +0100
file check needed
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/integration-tests/util.py b/integration-tests/util.py
@@ -7,6 +7,7 @@ from time import sleep
import atexit
from pathlib import Path
import sys
+import os
class CheckJsonField:
def __init__(self, name, nested=None, optional=False):
@@ -47,7 +48,8 @@ def kill(name, s):
def removeStaleDatabase(dbName):
db_full_path = str(Path.cwd() / dbName)
- os.remove(db_full_path)
+ if os.path.exists(db_full_path):
+ os.remove(db_full_path)
def makeNexusSuperuser(dbName):
db_full_path = str(Path.cwd() / dbName)