aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bank-lib/test_bank_api.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index 131d6559e..850b25ff6 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -124,11 +124,20 @@ main (int argc,
GNUNET_log_setup ("test-bank-api",
"WARNING",
NULL);
+
+ if (0 != system ("taler-bank-manage --with-db=postgres:///talercheck django flush --no-input"))
+ {
+ fprintf (stderr,
+ "Could not purge database 'talercheck'\n");
+ return 77;
+ }
+
bankd = GNUNET_OS_start_process (GNUNET_NO,
GNUNET_OS_INHERIT_STD_ALL,
NULL, NULL, NULL,
"taler-bank-manage",
"taler-bank-manage",
+ "--with-db", "postgres:///talercheck",
"serve-http",
"--port", "8080",
NULL);