diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-05-15 22:02:21 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-05-16 11:05:00 +0200 |
commit | 9916eef3dbb22ba0be8268d0e8bfa6ca5372d756 (patch) | |
tree | 2da78cd7a477f38715ed6b38319071550d5d267c /src/bank-lib | |
parent | bdfa18830d12ed99fee8d79f48d2ab0ba52c567e (diff) |
use and purge alternate db when testing against python bank
Diffstat (limited to 'src/bank-lib')
-rw-r--r-- | src/bank-lib/test_bank_api.c | 9 |
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); |