aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_parseconf.sh
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-11-14 12:57:59 +1000
committerteor <teor@torproject.org>2019-11-14 12:57:59 +1000
commitaa3e2bbd4bb52f0e8fc550841ffdcf2da3fa2fa7 (patch)
treebfefc9c32c16a249a037791a45dee0609e0b8f42 /src/test/test_parseconf.sh
parentced434c5869da6d6c7ac4c11a934a4d58a730afe (diff)
downloadtor-aa3e2bbd4bb52f0e8fc550841ffdcf2da3fa2fa7.tar.gz
tor-aa3e2bbd4bb52f0e8fc550841ffdcf2da3fa2fa7.zip
test/parseconf: Warn when the expected_log* file is missing
Part of 32451.
Diffstat (limited to 'src/test/test_parseconf.sh')
-rwxr-xr-xsrc/test/test_parseconf.sh18
1 files changed, 12 insertions, 6 deletions
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