ktest: Detect typos in option names
authorSteven Rostedt <srostedt@redhat.com>
Fri, 23 Dec 2011 02:37:22 +0000 (21:37 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 23 Dec 2011 03:02:35 +0000 (22:02 -0500)
commit9cc9e091ed4c70535309dd9336a5ea5c2c5920aa
tree514c7d65b55f5cc3df3487bbc89a79dc35d1fd24
parentb5f4aea687797bf9ab24f59643f88f82443b01fa
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>
tools/testing/ktest/ktest.pl
tools/testing/ktest/sample.conf
This page took 0.026598 seconds and 5 git commands to generate.