summaryrefslogtreecommitdiff
path: root/tools/testing/ktest/ktest.pl
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-04 22:42:08 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-06 21:08:03 +0300
commit133087f0623e927dfdf439a1b6a4e819a7a5f3ea (patch)
tree0c328ac8dbba3638fe0e15443aa4a238484d44d2 /tools/testing/ktest/ktest.pl
parentb2b07ea282721b6c7bed21e95e2c00dd95cb8520 (diff)
downloadlinux-133087f0623e927dfdf439a1b6a4e819a7a5f3ea.tar.xz
ktest.pl: Have ktest.pl pass -r to config-bisect.pl to reset bisect
If config-bisect.pl sees that a config_bisect has already been started, it will ask on the command line if it should bisect or not. This will mess up running config_bisect from ktest.pl. Have ktest.pl pass in '-r' to config-bisect.pl and have config-bisect.pl recognize that to reset without asking. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 27505fef2dab..fe6a7bb7d7d9 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -3127,10 +3127,14 @@ sub config_bisect_end {
sub run_config_bisect {
my ($good, $bad, $last_result) = @_;
+ my $reset = "";
my $cmd;
my $ret;
- run_command "$builddir/tools/testing/ktest/config-bisect.pl -b $outputdir $good $bad $last_result", 1;
+ if (!length($last_result)) {
+ $reset = "-r";
+ }
+ run_command "$builddir/tools/testing/ktest/config-bisect.pl $reset -b $outputdir $good $bad $last_result", 1;
# config-bisect returns:
# 0 if there is more to bisect