ktest: Fix bug where the test would not end after failure
authorSteven Rostedt <srostedt@redhat.com>
Tue, 8 Mar 2011 14:40:31 +0000 (09:40 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Mar 2011 14:52:58 +0000 (09:52 -0500)
commit4651920e0ac7a596c1123a8efdcc2f6d2249deb3
tree69eb8da9da385e9b0e08794befe30bb7ffe8d8b0
parent3410f6fd5e3e96de4b557a62b7a2fbf19d74b1cd
ktest: Fix bug where the test would not end after failure

The config STOP_AFTER_FAILURE is the number of seconds to continue
the test when a failure is detected. This lets the monitor record
more data to the logs and console that may be helpful in solving
the bug that was found.

But the test had a bug. If the failure caused multiple
"Call Trace" stack dumps, the start time to compare the
STOP_AFTER_FAILURE would constantly be reset. Only update the start
time at the first "Call Trace" instance.

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