ktest: For grub reboot, use run_ssh instead of run_command
Steven Rostedt [Wed, 10 Nov 2010 14:08:20 +0000 (09:08 -0500)]
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>

tools/testing/ktest/ktest.pl

index 6e85973..08a875f 100755 (executable)
@@ -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;
     }