From: Steven Rostedt <srostedt@redhat.com>
Date: Wed, 21 Mar 2012 12:24:57 +0000 (-0400)
Subject: ktest: Fix SWITCH_TO_GOOD to also reboot the machine
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=769df641cc1b870c0d7f95d6433416bf2c6c2b5e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git

ktest: Fix SWITCH_TO_GOOD to also reboot the machine

When the option SWITCH_TO_GOOD is set, it will be called when the system
needs to reboot to the good server. But currently, this keeps the reboot
from happening. The SWITCH_TO_GOOD is just a way to get to a new kernel,
it may not mean to not reboot.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---

diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 1143e6c5f07f..e7fed7903939 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1116,7 +1116,6 @@ sub reboot_to_good {
 
     if (defined($switch_to_good)) {
 	run_command $switch_to_good;
-	return;
     }
 
     reboot $time;