Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eec56460 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 1c8a617a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }