-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add exec variant that allows a negative call #55
Conversation
src/Hedgehog/Extras/Test/Process.hs
Outdated
-> String | ||
-> String | ||
-> [String] | ||
-> m (ExitCode, String, String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment what's returned here? I guess stdout and stderr but in what order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
src/Hedgehog/Extras/Test/Process.hs
Outdated
=> ExecConfig | ||
-> String | ||
-> [String] | ||
-> m (ExitCode, String, String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, a comment explaining String
s in the signature would be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
Description
Right now, all functions in
Process.hs
assume that the call will succeed: they fail the test if the call fails.This PR adds new variants that do not make this assumption, allowing callers to execute processes that will fail, and handle the exit code, stdout, and stderr themselves.
Context
Needed for IntersectMBO/cardano-node#5634