ktest.pl: Make finding config-bisect.pl dynamic
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 5 Apr 2018 16:14:39 +0000 (12:14 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 18:08:11 +0000 (14:08 -0400)
commit40667fb5fda0483e5c617d133968b17f6854cb9b
tree460a889d20b2af7de141737b76fa72cd543b4564
parent133087f0623e927dfdf439a1b6a4e819a7a5f3ea
ktest.pl: Make finding config-bisect.pl dynamic

Just looking for config-bisect.pl in the source tree can be risky,
especially, if the source tree being tested doesn't have config-bisect.pl in
place. Instead, allow the user to set where to find config-bisect.pl with a
new option CONFIG_BISECT_EXEC.

If this option is not set, by default, ktest.pl will look for
config-bisect.pl in the following locations:

 `pwd`/config-bisect.pl # where ktest.pl was called from
 `dirname /path/to/ktest.pl`/config-bisect.pl # where ktest.pl exists
 ${BUILD_DIR}/tools/testing/ktest/config-bisect.pl
   # where config-bisect.pl exists in the source tree.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl
tools/testing/ktest/sample.conf