From: Steven Rostedt Date: Mon, 7 Mar 2011 18:21:00 +0000 (-0500) Subject: ktest: Start failure timeout on panic too X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=10abf118f090b9a70ea05296a981fa27196dc7c6;p=mv-sheeva.git 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 --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 3e3615a7d96..6620fe4b364 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -820,6 +820,7 @@ sub monitor { } if ($full_line =~ /Kernel panic -/) { + $failure_start = time; $bug = 1; }