aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2020-07-01 10:32:28 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-07-01 10:35:48 -0400
commitd53cdda3fda6e737151e091c7d9388c31a73c828 (patch)
tree34ad2855993de11960e5b14eb1f5c3bd0703621a /tools/testing/ktest/sample.conf
parentktest.pl: Always show log file location if defined even on success (diff)
downloadlinux-dev-d53cdda3fda6e737151e091c7d9388c31a73c828.tar.xz
linux-dev-d53cdda3fda6e737151e091c7d9388c31a73c828.zip
ktest.pl: Define PRE_TEST_DIE to kill the test if the PRE_TEST fails
Currently, if a PRE_TEST is defined and ran, but fails, there's nothing currently available to make the test fail too. Add a PRE_TEST_DIE option that when set, if a PRE_TEST is defined and fails, the test will die too. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index 27666b8007ed..cb8227fbd01e 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -557,6 +557,11 @@
# default (undefined)
#PRE_TEST = ${SSH} reboot_to_special_kernel
+# To kill the entire test if PRE_TEST is defined but fails set this
+# to 1.
+# (default 0)
+#PRE_TEST_DIE = 1
+
# If there is a command you want to run after the individual test case
# completes, then you can set this option.
#