diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-07 12:05:25 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-14 22:02:45 -0400 |
commit | ff61e0123b7d8fe13ae8b6f96e5c3abfc11357fc (patch) | |
tree | 14048339b0098641b26d7e38ea7a4a90db04faf3 /tools | |
parent | 1f2ca141ec53a9c43ea0852f013907d19c435986 (diff) |
ktest: Fix child exit code processing
commit 32677207dcc5e594254b7fb4fb2352b1755b1d5b upstream.
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")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 { | |||
2629 | } | 2629 | } |
2630 | 2630 | ||
2631 | waitpid $child_pid, 0; | 2631 | waitpid $child_pid, 0; |
2632 | $child_exit = $?; | 2632 | $child_exit = $? >> 8; |
2633 | 2633 | ||
2634 | my $end_time = time; | 2634 | my $end_time = time; |
2635 | $test_time = $end_time - $start_time; | 2635 | $test_time = $end_time - $start_time; |