Commit eec5646031a54858362f7192a928511a23612f6b
Committed by
Steven Rostedt
1 parent
1c8a617a27
Exists in
master
and in
4 other branches
ktest: For grub reboot, use run_ssh instead of run_command
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
tools/testing/ktest/ktest.pl
... | ... | @@ -561,7 +561,7 @@ |
561 | 561 | |
562 | 562 | sub reboot_to { |
563 | 563 | if ($reboot_type eq "grub") { |
564 | - run_command "$ssh_exec '(echo \"savedefault --default=$grub_number --once\" | grub --batch; reboot)'"; | |
564 | + run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch; reboot)'"; | |
565 | 565 | return; |
566 | 566 | } |
567 | 567 |