Skip to content

Commit fee9d3e

Browse files
Chris J Argesrostedt
authored andcommitted
ktest: add ability to skip during BISECT_MANUAL
When doing a manual bisect, a build can fail or a test can be inconclusive. In these cases it would be helpful to be able to skip the test entirely. Link: http://lkml.kernel.org/r/1409164021-2136-1-git-send-email-chris.j.arges@canonical.com Reviewed-by: Satoru Takeuchi <satoru.takeuchi@gmail.com> Signed-off-by: Chris J Arges <chris.j.arges@canonical.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 23a0e16 commit fee9d3e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,15 +2338,17 @@ sub success {
23382338

23392339
sub answer_bisect {
23402340
for (;;) {
2341-
doprint "Pass or fail? [p/f]";
2341+
doprint "Pass, fail, or skip? [p/f/s]";
23422342
my $ans = <STDIN>;
23432343
chomp $ans;
23442344
if ($ans eq "p" || $ans eq "P") {
23452345
return 1;
23462346
} elsif ($ans eq "f" || $ans eq "F") {
23472347
return 0;
2348+
} elsif ($ans eq "s" || $ans eq "S") {
2349+
return -1;
23482350
} else {
2349-
print "Please answer 'P' or 'F'\n";
2351+
print "Please answer 'p', 'f', or 's'\n";
23502352
}
23512353
}
23522354
}

0 commit comments

Comments
 (0)