aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-05-15 22:02:21 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-16 11:05:00 +0200
commit9916eef3dbb22ba0be8268d0e8bfa6ca5372d756 (patch)
tree2da78cd7a477f38715ed6b38319071550d5d267c
parentbdfa18830d12ed99fee8d79f48d2ab0ba52c567e (diff)
use and purge alternate db when testing against python bank
-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);