summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-07 12:05:25 -0500
committerBen Hutchings <ben@decadent.org.uk>2017-06-05 21:17:05 +0100
commita517a95ddafc1b0ae64357fe380e220f9b5b41e5 (patch)
tree11595b0e927efddb6d8ace8cc48c9e6f475ecfef /tools
parent662f7372f0e5d0408667f0c518f75e1a7426a042 (diff)
downloadlinux-stable-a517a95ddafc1b0ae64357fe380e220f9b5b41e5.tar.gz
linux-stable-a517a95ddafc1b0ae64357fe380e220f9b5b41e5.tar.bz2
linux-stable-a517a95ddafc1b0ae64357fe380e220f9b5b41e5.zip
ktest: Fix child exit code processing
commit 32677207dcc5e594254b7fb4fb2352b1755b1d5b upstream. The child_exit errno needs to be shifted by 8 bits to compare against the return values for the bisect variables. Fixes: c5dacb88f0a64 ("ktest: Allow overriding bisect test results") Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 40631569a0fd..a98a8ea6514c 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -2445,7 +2445,7 @@ sub do_run_test {
}
waitpid $child_pid, 0;
- $child_exit = $?;
+ $child_exit = $? >> 8;
if (!$bug && $in_bisect) {
if (defined($bisect_ret_good)) {