Skip to content

Commit

Permalink
ktest: Start failure timeout on panic too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 8, 2011
1 parent f80802c commit 10abf11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ sub monitor {
}

if ($full_line =~ /Kernel panic -/) {
$failure_start = time;
$bug = 1;
}

Expand Down

0 comments on commit 10abf11

Please sign in to comment.