mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 13:15:57 +00:00
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>
This commit is contained in:
parent
1c8a617a27
commit
eec5646031
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user