From: Steven Rostedt Date: Thu, 2 Jun 2011 03:25:13 +0000 (-0400) Subject: ktest: Fix result of rebooting the kernel X-Git-Tag: v3.0~354^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4da46da2d295c0d9f4aaf28dd2b70a1ecb42d972;p=platform%2Fkernel%2Flinux-amlogic.git 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: Steven Rostedt --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 8dc8c3c..6c68259 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -788,7 +788,7 @@ sub wait_for_input sub reboot_to { 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; }