Commit 4da46da2 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt

ktest: Fix result of rebooting the kernel

The command that is called that reboots the kernel may fail
but the return code is not passed back to the ktest.pl script.
This is because a ';' is used between the two commands and
if the second command fails, only the first command's return
code is returned. Using a '&&' between the two commands fixes
this.
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 4c8cc55b
...@@ -788,7 +788,7 @@ sub wait_for_input ...@@ -788,7 +788,7 @@ sub wait_for_input
sub reboot_to { sub reboot_to {
if ($reboot_type eq "grub") { if ($reboot_type eq "grub") {
run_ssh "'(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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment