Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exit status check in #run! #5

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Fix exit status check in #run! #5

merged 2 commits into from
Sep 7, 2018

Conversation

grierj
Copy link
Contributor

@grierj grierj commented Sep 6, 2018

#zero? only works on integers. Open3's status is a
Process::Status object and surfaces a NoMethodError
when you try to call #zero? on it.

So assign status.exitstatus to the status variable during the
quiet run operation.

Wrote a few tests that will verify this continues working in the future

Grier Johnson added 2 commits September 6, 2018 13:52
`#zero?` only works on integers.  `Open3`'s status is a
`Process::Status` object and surfaces a `NoMethodError`
when you try to call `#zero?` on it.

So assign `status.exitstatus` to the `status` variable during the
`quiet` run operation.

Wrote a few tests that will verify this continues working in the future
@ianchesal
Copy link
Owner

Most excellent. Thanks!

@ianchesal ianchesal merged commit 63a1386 into ianchesal:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants