diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-07 12:05:25 -0500 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-05-17 15:06:58 -0400 |
commit | 04df6689f870481bf521e0efbef896a60266d3ae (patch) | |
tree | bda0f4ea00bfde1ee0c43e9948945f9a2b9ec257 /tools | |
parent | a52f3859b78cee24fbbfea9c0216447ad01a3775 (diff) |
ktest: Fix child exit code processing
[ Upstream commit 32677207dcc5e594254b7fb4fb2352b1755b1d5b ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'tools')
-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 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; |