]> git.baikalelectronics.ru Git - kernel.git/commit
ktest: Fix reboot on success stopping all reboots
authorSteven Rostedt <srostedt@redhat.com>
Tue, 1 May 2012 12:20:12 +0000 (08:20 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 1 May 2012 12:25:48 +0000 (08:25 -0400)
commit1686324c46d9b4af1818b86d76104a5aea1411da
tree7b39db0c257978d79b1819f518171e839c2629e0
parent1a8d4870bafc449dd71f19e705f3fe53e320e437
ktest: Fix reboot on success stopping all reboots

The change to let individual tests decide to reboot the machine on
success of the entire test also prevented errors from rebooting
when an error was detected.

The "no_reboot" variable was only cleared if the test had
reboot_on_success set. But the no_reboot variable also prevents the test
rebooting when an error was detected even when REBOOT_ON_ERROR was set.

Add a new "reboot_success" variable that is used to determine if the
test should reboot on success and not touch the no_reboot variable.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl