summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-07 12:05:25 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-15 09:57:13 +0800
commit485171b1ee8c7cc74cff9881b92b178b1c709663 (patch)
tree4b97824197a59d89d9045418426585f8eb6d0716 /tools/testing
parent696255449b89af5487bce53b1a65eddedc72aeff (diff)
downloadlinux-stable-485171b1ee8c7cc74cff9881b92b178b1c709663.tar.gz
linux-stable-485171b1ee8c7cc74cff9881b92b178b1c709663.tar.bz2
linux-stable-485171b1ee8c7cc74cff9881b92b178b1c709663.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
-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 d08e214ec6e7..223d88e25e05 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -2629,7 +2629,7 @@ sub do_run_test {
}
waitpid $child_pid, 0;
- $child_exit = $?;
+ $child_exit = $? >> 8;
my $end_time = time;
$test_time = $end_time - $start_time;