Skip to content

Commit 5158ba3

Browse files
Russ Dillrostedt
authored andcommitted
ktest.pl: Fix combined usage of BISECT_REVERSE and BISECT_SKIP
When BISECT_REVERSE and BISECT_SKIP are used together with boot or test testing, build failures are treated as boot or test failures and 'git bisect bad' is executed instead of 'git bisect skip'. This is because the $ret value of -1 is treated as a build failure, but the $reverse_bisect logic does not properly handle this. Simple fix, only invert it if it is positive. Link: http://lkml.kernel.org/r/1335235380-8509-1-git-send-email-Russ.Dill@ti.com Signed-off-by: Russ Dill <Russ.Dill@ti.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 66f75a5 commit 5158ba3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,7 @@ sub run_bisect {
21922192
}
21932193

21942194
# Are we looking for where it worked, not failed?
2195-
if ($reverse_bisect) {
2195+
if ($reverse_bisect && $ret >= 0) {
21962196
$ret = !$ret;
21972197
}
21982198

0 commit comments

Comments
 (0)