summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-11-04 11:15:41 +1000
committerteor <teor@torproject.org>2019-11-05 11:08:36 +1000
commit1dd6717db5016e59f8910c98276c820f447f33ff (patch)
treef411ea01db370a3627b92ceb37e795d20852d38b /src
parent03618e0d684317325cf79608c27c5fb26b18240f (diff)
downloadtor-1dd6717db5016e59f8910c98276c820f447f33ff.tar.gz
tor-1dd6717db5016e59f8910c98276c820f447f33ff.zip
test/parseconf: Consistenly use FAIL
Obviously correct fixes on already reviewed code.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/test_parseconf.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_parseconf.sh b/src/test/test_parseconf.sh
index 2f19793400..a224573a20 100755
--- a/src/test/test_parseconf.sh
+++ b/src/test/test_parseconf.sh
@@ -187,7 +187,7 @@ for dir in "${EXAMPLEDIR}"/*; do
--dump-config short \
${CMDLINE} \
| "${FILTER}" > "${DATA_DIR}/output.${testname}" \
- || die "Failure: Tor exited."
+ || die "FAIL: Tor exited."
if cmp "$EXPECTED" "${DATA_DIR}/output.${testname}">/dev/null ; then
# Check round-trip.
@@ -196,11 +196,11 @@ for dir in "${EXAMPLEDIR}"/*; do
--dump-config short \
| "${FILTER}" \
> "${DATA_DIR}/output_2.${testname}" \
- || die "Failure: Tor exited on round-trip."
+ || die "FAIL: Tor exited on round-trip."
if ! cmp "${DATA_DIR}/output.${testname}" \
"${DATA_DIR}/output_2.${testname}"; then
- echo "Failure: did not match on round-trip." >&2
+ echo "FAIL: did not match on round-trip." >&2
exit $EXITCODE
fi
@@ -214,7 +214,7 @@ for dir in "${EXAMPLEDIR}"/*; do
--verify-config \
${CMDLINE} || true
fi
- echo "Failure: did not match." >&2
+ echo "FAIL: did not match." >&2
diff -u "$EXPECTED" "${DATA_DIR}/output.${testname}" >&2 \
|| true
exit $EXITCODE
@@ -234,7 +234,7 @@ for dir in "${EXAMPLEDIR}"/*; do
--defaults-torrc "${DEFAULTS}" \
${CMDLINE} \
> "${DATA_DIR}/output.${testname}" \
- && die "Failure: Tor did not report an error."
+ && die "FAIL: Tor did not report an error."
expect_err="$(cat $ERROR)"
if grep "${expect_err}" "${DATA_DIR}/output.${testname}" >/dev/null; then