ktest: If test failed due to timeout, print that
authorSteven Rostedt <srostedt@redhat.com>
Fri, 20 May 2011 13:14:35 +0000 (09:14 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 20 May 2011 13:14:35 +0000 (09:14 -0400)
If the test failed due to timeout for boot, print a message saying
so. Otherwise the user will be confused to why their test just failed.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl

index 7301d0328858735cad6dd8db81c63c920589098e..0603e64fea302016b847e225021868ccb2c5e6a7 100755 (executable)
@@ -838,6 +838,7 @@ sub monitor {
 
        if ($stop_test_after > 0 && !$booted && !$bug) {
            if (time - $monitor_start > $stop_test_after) {
+               doprint "STOP_TEST_AFTER ($stop_test_after seconds) timed out\n";
                $done = 1;
            }
        }