ktest.pl: Fix combined usage of BISECT_REVERSE and BISECT_SKIP
authorRuss Dill <Russ.Dill@ti.com>
Tue, 24 Apr 2012 02:43:00 +0000 (19:43 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 May 2012 13:22:31 +0000 (18:22 +0530)
commitc57f5159f805ba437a95330375788ce6e856f3a7
tree05d1e9a35e3ecbea04e222abc6a7c8c5499d2fe4
parentd1c945afbb2c9dfa8f34c7c748cfc466c261e75e
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>
tools/testing/ktest/ktest.pl