Commit 01dde64e05822f4886017e1605ee2191988bd831

czurnieden 2018-05-04T21:32:46

In case of a timeout echo last line in logfile of last test before that logfile gets removed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/testme.sh b/testme.sh
index 5dce2d2..a8180bd 100755
--- a/testme.sh
+++ b/testme.sh
@@ -66,6 +66,9 @@ _die()
     exit 128
   else
     echo "assuming timeout while running test - continue"
+    local _tail=""
+    which tail >/dev/null && _tail="tail -n 1 test_${suffix}.log" && \
+    echo "last line of test_"${suffix}".log was:" && $_tail && echo ""
     ret=$(( $ret + 1 ))
   fi
 }