]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a6b665265f9b81ece3c80c5ebd9a783e1d43780
tree514c7d65b55f5cc3df3487bbc89a79dc35d1fd24
parent003dfb04391d1e71d0a0ec26e0f0140089105164
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