summaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-07 12:05:25 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-02-07 12:05:25 -0500
commit32677207dcc5e594254b7fb4fb2352b1755b1d5b (patch)
tree68f19c9d56e184248ad50d1b05a728f7ac88754d /tools/testing/ktest
parent2e07c9f55ecabdf78746b9808fec6ab549a07f8a (diff)
downloadlinux-32677207dcc5e594254b7fb4fb2352b1755b1d5b.tar.bz2
ktest: Fix child exit code processing
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") Cc: stable@vger.kernel.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest')
-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 caa90d391a96..a64da242b824 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -2633,7 +2633,7 @@ sub do_run_test {
}
waitpid $child_pid, 0;
- $child_exit = $?;
+ $child_exit = $? >> 8;
my $end_time = time;
$test_time = $end_time - $start_time;