From 98fe9b3482c082de290efdc0fcce3730faf7abb6 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Thu, 17 Dec 2015 18:40:45 +0100 Subject: [PATCH] never PASS with content in errorlog --- test.sh | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 2.47.2