test/parseconf: Warn when the expected_log* file is missing

Part of 32451.
This commit is contained in:
teor
2019-11-14 12:57:59 +10:00
parent ced434c586
commit aa3e2bbd4b
+12 -6
View File
@@ -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