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

This commit is contained in:
czurnieden 2018-05-04 21:32:46 +02:00 committed by Steffen Jaeckel
parent fd876e4a7f
commit 01dde64e05

View File

@ -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
}