提交 eec56460 编写于 作者: S Steven Rostedt 提交者: Steven Rostedt

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: NSteven Rostedt <rostedt@goodmis.org>
上级 1c8a617a
...@@ -561,7 +561,7 @@ sub wait_for_input ...@@ -561,7 +561,7 @@ sub wait_for_input
sub reboot_to { sub reboot_to {
if ($reboot_type eq "grub") { 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; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册