Skip to content

Commit

Permalink
ktest: For grub reboot, use run_ssh instead of run_command
Browse files Browse the repository at this point in the history
The run_ssh handles the ssh variable $SSH_COMMAND, which was not
being used by the run_command in reboot_to function.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and rostedt committed Nov 18, 2010
1 parent 1c8a617 commit eec5646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ sub wait_for_input

sub reboot_to {
if ($reboot_type eq "grub") {
run_command "$ssh_exec '(echo \"savedefault --default=$grub_number --once\" | grub --batch; reboot)'";
run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch; reboot)'";
return;
}

Expand Down

0 comments on commit eec5646

Please sign in to comment.