mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
test/parseconf: Warn when the expected_log* file is missing
Part of 32451.
This commit is contained in:
@@ -614,12 +614,18 @@ for dir in "${EXAMPLEDIR}"/*; do
|
|||||||
# This case should succeed: run verify-config and see if it does.
|
# This case should succeed: run verify-config and see if it does.
|
||||||
|
|
||||||
check_verify_config "./torrc" \
|
check_verify_config "./torrc" \
|
||||||
"$DEFAULTS" \
|
"$DEFAULTS" \
|
||||||
"$CMDLINE" \
|
"$CMDLINE" \
|
||||||
"${DATA_DIR}/output_log.${testname}" \
|
"${DATA_DIR}/output_log.${testname}" \
|
||||||
"$TRUE" \
|
"$TRUE" \
|
||||||
"$EXPECTED_LOG" \
|
"$EXPECTED_LOG" \
|
||||||
"log success"
|
"log success"
|
||||||
|
else
|
||||||
|
printf "\\nNOTICE: Missing '%s_log' file:\\n" \
|
||||||
|
"$EXPECTED" >&2
|
||||||
|
log_verify_config "./torrc" \
|
||||||
|
"$DEFAULTS" \
|
||||||
|
"$CMDLINE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif test -f "$ERROR"; then
|
elif test -f "$ERROR"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user