use and purge alternate db when testing against python bank

This commit is contained in:
Marcello Stanisci 2017-05-15 22:02:21 +02:00 committed by Christian Grothoff
parent bdfa18830d
commit 9916eef3db
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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);