ktest: Fix SWITCH_TO_GOOD to also reboot the machine
authorSteven Rostedt <srostedt@redhat.com>
Wed, 21 Mar 2012 12:24:57 +0000 (08:24 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 21 Mar 2012 12:24:57 +0000 (08:24 -0400)
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>
tools/testing/ktest/ktest.pl

index 1143e6c5f07f01278b3f1ace00ca6913012765ac..e7fed79039393fcf365b1e37796a194ed35e9410 100755 (executable)
@@ -1116,7 +1116,6 @@ sub reboot_to_good {
 
     if (defined($switch_to_good)) {
        run_command $switch_to_good;
-       return;
     }
 
     reboot $time;