aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 3fd768e65998..839989d08dc2 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1212,11 +1212,16 @@ sub reboot {
1212 } 1212 }
1213 1213
1214 if (defined($time)) { 1214 if (defined($time)) {
1215 if (wait_for_monitor($time, $reboot_success_line)) { 1215 # Look for the good kernel to boot
1216 if (wait_for_monitor($time, "Linux version")) {
1216 # reboot got stuck? 1217 # reboot got stuck?
1217 doprint "Reboot did not finish. Forcing power cycle\n"; 1218 doprint "Reboot did not finish. Forcing power cycle\n";
1218 run_command "$power_cycle"; 1219 run_command "$power_cycle";
1219 } 1220 }
1221
1222 # Still need to wait for the reboot to finish
1223 wait_for_monitor($time, $reboot_success_line);
1224
1220 end_monitor; 1225 end_monitor;
1221 } 1226 }
1222} 1227}