From: teor Date: Thu, 14 Nov 2019 02:57:59 +0000 (+1000) Subject: test/parseconf: Warn when the expected_log* file is missing X-Git-Tag: tor-0.4.3.1-alpha~148^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa3e2bbd4bb52f0e8fc550841ffdcf2da3fa2fa7;p=thirdparty%2Ftor.git test/parseconf: Warn when the expected_log* file is missing Part of 32451. --- diff --git a/src/test/test_parseconf.sh b/src/test/test_parseconf.sh index 2298f0234f..4fe27d9f5d 100755 --- a/src/test/test_parseconf.sh +++ b/src/test/test_parseconf.sh @@ -614,12 +614,18 @@ for dir in "${EXAMPLEDIR}"/*; do # This case should succeed: run verify-config and see if it does. check_verify_config "./torrc" \ - "$DEFAULTS" \ - "$CMDLINE" \ - "${DATA_DIR}/output_log.${testname}" \ - "$TRUE" \ - "$EXPECTED_LOG" \ - "log success" + "$DEFAULTS" \ + "$CMDLINE" \ + "${DATA_DIR}/output_log.${testname}" \ + "$TRUE" \ + "$EXPECTED_LOG" \ + "log success" + else + printf "\\nNOTICE: Missing '%s_log' file:\\n" \ + "$EXPECTED" >&2 + log_verify_config "./torrc" \ + "$DEFAULTS" \ + "$CMDLINE" fi elif test -f "$ERROR"; then