ktest: Allow a test to override REBOOT_ON_SUCCESS
authorSteven Rostedt <srostedt@redhat.com>
Wed, 21 Mar 2012 15:18:27 +0000 (11:18 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 21 Mar 2012 15:18:27 +0000 (11:18 -0400)
commit648a182c615272f01b5cda01dc87a16de9f695bb
tree4e54cc869f5dfc0fc8415de2708aa770649c11b8
parent769df641cc1b870c0d7f95d6433416bf2c6c2b5e
ktest: Allow a test to override REBOOT_ON_SUCCESS

The option REBOOT_ON_SUCCESS is global, and will have the machine reboot
the the box if all tests are successful. But a test may not want the
machine to reboot, and perhaps have the kernel it loaded be used to
install the next kernel. Or the last test may set up a kernel that the
user may want to look at. In this case, the user could have the global
option REBOOT_ON_SUCCESS be true, but if a test is defined to run at the
end, that test can override the global option and keep the kernel it
installed for the user to log in with.

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