Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Conversation

@hoffi
Copy link

@hoffi hoffi commented Aug 20, 2018

$CHILD_STATUS.to_i does not just return the exit code. As described in the ruby docs it returns a 16-bit integer with the process informations and exit code. This will result in a value greater than 255, which is an invalid exit code. Passing a value greater than 255 to exit results in an exit code of 0.
$CHILD_STATUS.exitstatus returns just the exit code.

This is similar to #40. I had this problem where on parallel rspec worker crashed but the exit code returned by zeus-parallel_tests was still 0.

I have also fixed the gem versions to work with all tested ruby versions.

hoffi and others added 3 commits August 20, 2018 18:49
…r. Used directly with Kernel#exit, this will result in unexpected behaviour. Providing a value of 256 will result in exit code 0 which is not appropriate.

Co-authored-by: Sven Winkler <svenwin@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant