]> git.baikalelectronics.ru Git - kernel.git/commit
ktest.pl: Fix missing "end_monitor" when machine check fails
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 18 Jan 2023 16:31:25 +0000 (11:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:44:05 +0000 (16:44 +0100)
commite0c0aa070b8794b0a17a401838a921d8842c67a1
treee4967e2d02c5d82569aad2fe79816d3214986499
parent0d91f5c497d629e65fb71596c4fdfb138a5ac183
ktest.pl: Fix missing "end_monitor" when machine check fails

commit e8bf9b98d40dbdf4e39362e3b85a70c61da68cb7 upstream.

In the "reboot" command, it does a check of the machine to see if it is
still alive with a simple "ssh echo" command. If it fails, it will assume
that a normal "ssh reboot" is not possible and force a power cycle.

In this case, the "start_monitor" is executed, but the "end_monitor" is
not, and this causes the screen will not be given back to the console. That
is, after the test, a "reset" command needs to be performed, as "echo" is
turned off.

Cc: stable@vger.kernel.org
Fixes: aa8896990f75d ("ktest.pl: Powercycle the box on reboot if no connection can be made")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/ktest/ktest.pl