浏览代码

ktest: Start failure timeout on panic too

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>
Steven Rostedt 14 年之前
父节点
当前提交
10abf118f0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tools/testing/ktest/ktest.pl

+ 1 - 0
tools/testing/ktest/ktest.pl

@@ -820,6 +820,7 @@ sub monitor {
 	}
 
 	if ($full_line =~ /Kernel panic -/) {
+	    $failure_start = time;
 	    $bug = 1;
 	}