From d401c9e5e66385f260cbb289185da4019a0e4531 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 3 Apr 2019 12:01:59 +0200 Subject: [PATCH] fix -c option --- src/gns/gnunet-gns-proxy-setup-ca.in | 3 ++- src/gns/test_gns_proxy.c | 4 +++- src/gns/test_proxy.sh | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gns/gnunet-gns-proxy-setup-ca.in b/src/gns/gnunet-gns-proxy-setup-ca.in index 59dc69da9..184da4853 100644 --- a/src/gns/gnunet-gns-proxy-setup-ca.in +++ b/src/gns/gnunet-gns-proxy-setup-ca.in @@ -141,7 +141,7 @@ generate_ca() rm -f $GNSCAKY $GNSCANO $GNSCERT exit 1 fi - if [ -n "${GNUNET_CONFIG}" ]; then + if [ -n "${GNUNET_CONFIG_FILE}" ]; then GNUNET_CONFIG="-c ${GNUNET_CONFIG_FILE}" else GNUNET_CONFIG="" @@ -231,6 +231,7 @@ main() c) options="$options -c $OPTARG" infomsg "Using configuration file $OPTARG" + GNUNET_CONFIG_FILE=${OPTARG} ;; \?) echo "Invalid option: -$OPTARG" >&2 diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 0bfd84c91..2a7f8104b 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c @@ -370,7 +370,9 @@ start_curl (void *cls) multi = curl_multi_init (); GNUNET_assert (multi != NULL); GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl)); - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Beginning HTTP download from `%s'\n", url); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Beginning HTTP download from `%s'\n", + url); curl_main (); } diff --git a/src/gns/test_proxy.sh b/src/gns/test_proxy.sh index 5ea083122..7c17cd4c5 100755 --- a/src/gns/test_proxy.sh +++ b/src/gns/test_proxy.sh @@ -2,6 +2,8 @@ # This file is in the public domain. TEST_DOMAIN="www.test" +# Delete old files before starting test +rm -rf /tmp/gnunet/test-gnunet-gns-testing/ gnunet-arm -s -c test_gns_proxy.conf gnunet-gns-proxy-setup-ca -c test_gns_proxy.conf -- 2.25.1