gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 05/06: use and purge alternate db when tes


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 05/06: use and purge alternate db when testing against python bank
Date: Tue, 16 May 2017 11:05:16 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 9916eef3dbb22ba0be8268d0e8bfa6ca5372d756
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 15 22:02:21 2017 +0200

    use and purge alternate db when testing against python bank
---
 src/bank-lib/test_bank_api.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index 131d655..850b25f 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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]