提交 fee9d3e6 编写于 作者: C Chris J Arges 提交者: Steven Rostedt

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.comReviewed-by: NSatoru Takeuchi <satoru.takeuchi@gmail.com>
Signed-off-by: NChris J Arges <chris.j.arges@canonical.com>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 23a0e161
...@@ -2338,15 +2338,17 @@ sub success { ...@@ -2338,15 +2338,17 @@ sub success {
sub answer_bisect { sub answer_bisect {
for (;;) { for (;;) {
doprint "Pass or fail? [p/f]"; doprint "Pass, fail, or skip? [p/f/s]";
my $ans = <STDIN>; my $ans = <STDIN>;
chomp $ans; chomp $ans;
if ($ans eq "p" || $ans eq "P") { if ($ans eq "p" || $ans eq "P") {
return 1; return 1;
} elsif ($ans eq "f" || $ans eq "F") { } elsif ($ans eq "f" || $ans eq "F") {
return 0; return 0;
} elsif ($ans eq "s" || $ans eq "S") {
return -1;
} else { } else {
print "Please answer 'P' or 'F'\n"; print "Please answer 'p', 'f', or 's'\n";
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册