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

testexec: getting exit codes correctly. #6

Merged
merged 1 commit into from
Sep 26, 2021
Merged

Conversation

warpfork
Copy link
Owner

@warpfork warpfork commented Sep 26, 2021

ExecFn_Exec and ScriptFn_ExecBash (the defaults) now return exit codes correctly.

I've gone perhaps a bit overboard in also making sure that death-by-signal is reported, too. Maybe this won't stick around (especially because it requires importing the syscall packaage, which might otherwise be avoidable on recentish versions of golang), because I don't know if it's critically relevant and likely to actually get exercised much in this domain... but I've written it, so let's see if it sticks.

(Which remains a bit of a bear, apparently.  Especially if you want to
talk accurrately about signals.)
@warpfork warpfork merged commit 14b6f0f into master Sep 26, 2021
@warpfork warpfork deleted the exec-exitcodes branch September 26, 2021 21:25
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
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.

1 participant