From 3dd1b1c00f3f69aaa4f977191b97e8a42b6c7bfa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 3 Oct 2020 16:13:06 +0200 Subject: [PATCH] fix pybank launch in tests --- doc/prebuilt | 2 +- src/testing/testing_api_helpers_bank.c | 24 +----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/doc/prebuilt b/doc/prebuilt index eef86710c..99c167bc4 160000 --- a/doc/prebuilt +++ b/doc/prebuilt @@ -1 +1 @@ -Subproject commit eef86710c7deade01361f8985fd9a6fe6a21e8ff +Subproject commit 99c167bc448cfa864e475cd43fe5fb7a7ba0aaa5 diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c index 5b11ad937..48802e042 100644 --- a/src/testing/testing_api_helpers_bank.c +++ b/src/testing/testing_api_helpers_bank.c @@ -241,8 +241,6 @@ TALER_TESTING_run_bank (const char *config_filename, unsigned int iter; char *wget_cmd; char *database; - char *serve_cfg; - char *serve_arg; struct GNUNET_CONFIGURATION_Handle *cfg; cfg = GNUNET_CONFIGURATION_create (); @@ -268,27 +266,7 @@ TALER_TESTING_run_bank (const char *config_filename, GNUNET_CONFIGURATION_destroy (cfg); exit (77); } - - if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (cfg, - "bank", - "serve", - &serve_cfg)) - { - GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING, - "bank", - "serve"); - GNUNET_break (0); - GNUNET_CONFIGURATION_destroy (cfg); - GNUNET_free (database); - exit (77); - } GNUNET_CONFIGURATION_destroy (cfg); - - serve_arg = "serve-http"; - if (0 != strcmp ("http", serve_cfg)) - serve_arg = "serve-uwsgi"; - GNUNET_free (serve_cfg); bank_proc = GNUNET_OS_start_process ( GNUNET_OS_INHERIT_STD_NONE, NULL, NULL, NULL, @@ -296,7 +274,7 @@ TALER_TESTING_run_bank (const char *config_filename, "taler-bank-manage-testing", config_filename, database, - serve_arg, NULL); + "serve", NULL); GNUNET_free (database); if (NULL == bank_proc) {