提交 cd4f1d53 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

ktest: Notify reason to break out of monitoring boot

Different timeouts can cause the ktest monitor to break out of the
loop. It becomes annoying that one does not know the reason why
it exited the monitor loop. Display the cause of the reason why
the loop was exited.
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 59c5f46f
......@@ -841,12 +841,20 @@ sub monitor {
if ($booted) {
$line = wait_for_input($monitor_fp, $booted_timeout);
if (!defined($line)) {
my $s = $booted_timeout == 1 ? "" : "s";
doprint "Successful boot found: break after $booted_timeout second$s\n";
last;
}
} else {
$line = wait_for_input($monitor_fp);
if (!defined($line)) {
my $s = $timeout == 1 ? "" : "s";
doprint "Timed out after $timeout second$s\n";
last;
}
}
last if (!defined($line));
doprint $line;
print DMESG $line;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册