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

[MRG] fix exit codes from genome-grist CLI #200

Merged
merged 1 commit into from
Aug 27, 2022
Merged

[MRG] fix exit codes from genome-grist CLI #200

merged 1 commit into from
Aug 27, 2022

Conversation

ctb
Copy link
Member

@ctb ctb commented Aug 27, 2022

In #195, I changed the return value of run_snakemake to be a CompletedProcess instance as returned by subprocess.run(...) ref. This broke the bits of the code that use sys.exit(run_snakemake(...)) to signal success or failure on CLI execution.

This PR fixes the returncode to be the value of CompletedProcess.returncode.

@ctb ctb merged commit 2c079cd into latest Aug 27, 2022
@ctb ctb deleted the fix/returncode branch August 27, 2022 15:15
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