From 649d95adc33afd6331194979adba2e875a8ec7a0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Jan 2020 15:28:07 +0100 Subject: more unique naming of commands, clean up revocation dir --- src/lib/testing_api_helpers_exchange.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/lib/testing_api_helpers_exchange.c') diff --git a/src/lib/testing_api_helpers_exchange.c b/src/lib/testing_api_helpers_exchange.c index 8f7c75035..fdabd4a44 100644 --- a/src/lib/testing_api_helpers_exchange.c +++ b/src/lib/testing_api_helpers_exchange.c @@ -63,12 +63,29 @@ TALER_TESTING_cleanup_files_cfg (void *cls, if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "exchange", - "keydir", + "KEYDIR", &dir)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "exchange", - "keydir"); + "KEYDIR"); + return GNUNET_SYSERR; + } + if (GNUNET_YES == + GNUNET_DISK_directory_test (dir, + GNUNET_NO)) + GNUNET_break (GNUNET_OK == + GNUNET_DISK_directory_remove (dir)); + GNUNET_free (dir); + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_filename (cfg, + "exchange", + "REVOCATION_DIR", + &dir)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "exchange", + "REVOCATION_DIR"); return GNUNET_SYSERR; } if (GNUNET_YES == @@ -77,7 +94,6 @@ TALER_TESTING_cleanup_files_cfg (void *cls, GNUNET_break (GNUNET_OK == GNUNET_DISK_directory_remove (dir)); GNUNET_free (dir); - // TODO: auditor-specific clean-up here! return GNUNET_OK; } -- cgit v1.2.3