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