Revert "tests/libtest.sh: Print non-matching file on failure"

This reverts commit 71301d1824.

I was confused by the fact that the non-matching content was
empty and forgot we already did print it.

Reported-by: smcv

Closes: #390
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-07-11 15:18:34 -04:00 committed by Atomic Bot
parent 35b4131bd7
commit 87c9e227cb

View File

@ -138,7 +138,6 @@ assert_file_has_content () {
if ! grep -q -e "$2" "$1"; then if ! grep -q -e "$2" "$1"; then
sed -e 's/^/# /' < "$1" >&2 sed -e 's/^/# /' < "$1" >&2
echo 1>&2 "File '$1' doesn't match regexp '$2'" echo 1>&2 "File '$1' doesn't match regexp '$2'"
cat $1
exit 1 exit 1
fi fi
} }