From: Steven Rostedt (VMware) Date: Tue, 7 Feb 2017 17:05:25 +0000 (-0500) Subject: ktest: Fix child exit code processing X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=32677207dcc5e594254b7fb4fb2352b1755b1d5b;p=linux.git 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) --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index caa90d391a963..a64da242b8242 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;