Timeout is used to INTerrupt the test if it is still running after pre-defined time. If the process does not terminate KILL signal is sent after a pre-defined time, but the return status is different in that case (128+9). Catch it and treat is as test failure with the message that the process was killed. Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx> --- test/runtests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/runtests.sh b/test/runtests.sh index ed28ec8..b210013 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -161,6 +161,8 @@ run_test() # Check test status if [ "$status" -eq 124 ]; then test_result timeout "${logfile}" "${test_string}" + elif [ "$status" -eq 137 ]; then + test_failed "${logfile}" "${test_string}" "process Killed" elif [ "$status" -ne 0 ] && [ "$status" -ne 255 ]; then test_result fail "${logfile}" "${test_string}" "status = $status" elif ! _check_dmesg "$dmesg_marker" "$test_name" "$dev"; then -- 2.26.2