From: Lukas Schauer Date: Thu, 17 Dec 2015 17:40:45 +0000 (+0100) Subject: never PASS with content in errorlog X-Git-Tag: v0.1.0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98fe9b3482c082de290efdc0fcce3730faf7abb6;p=thirdparty%2Fdehydrated.git never PASS with content in errorlog --- diff --git a/test.sh b/test.sh index cf5adff..ac97a2a 100755 --- a/test.sh +++ b/test.sh @@ -17,6 +17,9 @@ _SUBTEST() { echo -n " + ${1} " } _PASS() { + if [[ ! -z "$(cat errorlog)" ]]; then + _FAIL + fi echo -e "[\u001B[32mPASS\u001B[0m]" } _FAIL() {