aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-12-22 21:37:22 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-12-22 22:02:35 -0500
commit9cc9e091ed4c70535309dd9336a5ea5c2c5920aa (patch)
tree514c7d65b55f5cc3df3487bbc89a79dc35d1fd24 /tools/testing/ktest/sample.conf
parentb5f4aea687797bf9ab24f59643f88f82443b01fa (diff)
ktest: Detect typos in option names
It becomes quite annoying when you go to run a test and then realize that you typed an option name wrong, and the test starts doing the default action and not what you expected it to do. It is even more annoying when you wake up the next day after running the test over night when you discover this. By testing if all options specified in a config file are used by either ktest or were used in one of the option's values we can see if there are any dangling options that were not used. In such a case, show the user the options that were not used and ask them if they want to continue or not. The option IGNORE_UNUSED was also added to allow the user to override this feature. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index c8dc7575c2f5..86ce62c3fdca 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -727,6 +727,17 @@
727# (default 1) 727# (default 1)
728#DETECT_TRIPLE_FAULT = 0 728#DETECT_TRIPLE_FAULT = 0
729 729
730# All options in the config file should be either used by ktest
731# or could be used within a value of another option. If an option
732# in the config file is not used, ktest will warn about it and ask
733# if you want to continue.
734#
735# If you don't care if there are non-used options, enable this
736# option. Be careful though, a non-used option is usually a sign
737# of an option name being typed incorrectly.
738# (default 0)
739#IGNORE_UNUSED = 1
740
730#### Per test run options #### 741#### Per test run options ####
731# The following options are only allowed in TEST_START sections. 742# The following options are only allowed in TEST_START sections.
732# They are ignored in the DEFAULTS sections. 743# They are ignored in the DEFAULTS sections.