diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-07 12:05:25 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-07 12:05:25 -0500 |
commit | 32677207dcc5e594254b7fb4fb2352b1755b1d5b (patch) | |
tree | 68f19c9d56e184248ad50d1b05a728f7ac88754d | |
parent | 2e07c9f55ecabdf78746b9808fec6ab549a07f8a (diff) | |
download | linux-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>
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 2 |
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; |