]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ktest: Start failure timeout on panic too
authorSteven Rostedt <srostedt@redhat.com>
Mon, 7 Mar 2011 18:21:00 +0000 (13:21 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Mar 2011 14:52:58 +0000 (09:52 -0500)
Currently we just look for a Call Trace to start the time out
when to reboot the box. But if the kernel panics and does not
show a Call Trace, the test will not reboot the box after
the specified timeout.

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

index 3e3615a7d968dfc13e1c79f9370883688d929e9b..6620fe4b364f143dd3a9d602322649c07620ca2d 100755 (executable)
@@ -820,6 +820,7 @@ sub monitor {
        }
 
        if ($full_line =~ /Kernel panic -/) {
+           $failure_start = time;
            $bug = 1;
        }