提交 995bc431 编写于 作者: S Steven Rostedt (Red Hat) 提交者: Steven Rostedt

ktest: Fix check for new kernel success on rebooting to good kernel

The reboot function when rebooting back to a good kernel has a check
to make sure that a new kernel was indeed booted. But that check
uses a timeout value, which when calling the monitor will still
return success if the timeout is hit (no bug was found). It should
return an error to let the reboot code know that a new kernel was
not reached. Only the reboot code checks the return value of the
monitor.
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 fee9d3e6
...@@ -1450,6 +1450,12 @@ sub wait_for_monitor { ...@@ -1450,6 +1450,12 @@ sub wait_for_monitor {
} }
} }
print "** Monitor flushed **\n"; print "** Monitor flushed **\n";
# if stop is defined but wasn't hit, return error
# used by reboot (which wants to see a reboot)
if (defined($stop) && !$booted) {
$bug = 1;
}
return $bug; return $bug;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册