]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
never PASS with content in errorlog
authorLukas Schauer <lukas@schauer.so>
Thu, 17 Dec 2015 17:40:45 +0000 (18:40 +0100)
committerLukas Schauer <lukas@schauer.so>
Thu, 17 Dec 2015 17:40:45 +0000 (18:40 +0100)
test.sh

diff --git a/test.sh b/test.sh
index cf5adfff20fc307e0a706d8982e852b11b48d10b..ac97a2a952f5867ef2c8b8376228035d06921c29 100755 (executable)
--- 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() {