Messages in this thread Patch in this message | | | Date | Tue, 07 Feb 2017 15:06:49 -0500 | From | Steven Rostedt <> | Subject | [for-next][PATCH 2/5] ktest: Fix child exit code processing |
| |
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
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> --- tools/testing/ktest/ktest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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; -- 2.10.2
| |