Commit f304013e authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Jiri Slaby

ktest: Fix child exit code processing

commit 32677207 upstream.

The child_exit errno needs to be shifted by 8 bits to compare against the
return values for the bisect variables.

Fixes: c5dacb88 ("ktest: Allow overriding bisect test results")
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 725938ba
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment