diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 56620c3fea04..2a0721b76a94 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1488,7 +1488,8 @@ sub reboot { # Still need to wait for the reboot to finish wait_for_monitor($time, $reboot_success_line); - + } + if ($powercycle || $time) { end_monitor; } }