commit c1553475cdf5614159b1e46f602567a5fdd61b85 parent f523a018bfc339acac27e804c9882fdccac6bd00 Author: MS <ms@taler.net> Date: Mon, 7 Dec 2020 14:10:28 +0100 remove DB files before running tests Diffstat:
| M | integration-tests/tests.py | | | 3 | +++ |
| M | integration-tests/util.py | | | 4 | ++++ |
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/integration-tests/tests.py b/integration-tests/tests.py @@ -134,7 +134,10 @@ def prepareNexus(): ) ) +removeStaleDatabase(NEXUS_DB) startNexus(NEXUS_DB) + +removeStaleDatabase(SANDBOX_DB) startSandbox(SANDBOX_DB) def setup_function(): diff --git a/integration-tests/util.py b/integration-tests/util.py @@ -45,6 +45,10 @@ def kill(name, s): s.terminate() s.wait() +def removeStaleDatabase(dbName): + db_full_path = str(Path.cwd() / dbName) + os.remove(db_full_path) + def makeNexusSuperuser(dbName): db_full_path = str(Path.cwd() / dbName) check_call(