Skip to content

Commit 4d00fc4

Browse files
committed
ktest: Add timeout for ssh sync testing
Before rebooting the box, a "ssh sync" is called to the test machine to see if it is alive or not. But if the test machine is in a partial state, that ssh may never actually finish, and the ktest test hangs. Add a 10 second timeout to the sync test, which will fail after 10 seconds and then cause the test to reboot the test machine. Cc: [email protected] Fixes: 6474ace ("ktest.pl: Powercycle the box on reboot if no connection can be made") Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 791dc9d commit 4d00fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ sub reboot {
13831383

13841384
} else {
13851385
# Make sure everything has been written to disk
1386-
run_ssh("sync");
1386+
run_ssh("sync", 10);
13871387

13881388
if (defined($time)) {
13891389
start_monitor;

0 commit comments

Comments
 (0)