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: c5dacb88f0 ("ktest: Allow overriding bisect test results")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
Steven Rostedt (VMware)
2017-02-07 12:05:25 -05:00
committed by Willy Tarreau
parent 2c318737ec
commit 5bb7a6c438
+1 -1
View File
@@ -2375,7 +2375,7 @@ sub do_run_test {
}
waitpid $child_pid, 0;
$child_exit = $?;
$child_exit = $? >> 8;
if (!$bug && $in_bisect) {
if (defined($bisect_ret_good)) {