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

Add results --fail-on-error/-F flag #1573

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

saschagrunert
Copy link
Member

This allows to exit with 1 in case any build fails to provide feedback to end-user scripts.

Refers to: kubernetes/release#3632

@pep8speaks
Copy link

pep8speaks commented Jun 5, 2024

Hello @saschagrunert! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-06-20 07:57:10 UTC

Copy link
Contributor

@dmach dmach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good idea, but the sys.exit() call needs to be replaced with something else.

osc/core.py Outdated Show resolved Hide resolved
@saschagrunert saschagrunert force-pushed the fail-on-error branch 2 times, most recently from c368e02 to 84841fc Compare June 11, 2024 08:17
This allows to exit with `1` in case any build fails to provide feedback
to end-user scripts.

Refers to: kubernetes/release#3632

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@dmach
Copy link
Contributor

dmach commented Jun 20, 2024

I've rebased the PR, resolved conflicts and force-pushed back to your branch.
The PR looks good to me and if the tests pass, I'll merge it.

@saschagrunert
Copy link
Member Author

Thank you @dmach! 🙏

@dmach dmach merged commit 3ffda9e into openSUSE:master Jun 20, 2024
31 of 33 checks passed
@saschagrunert saschagrunert deleted the fail-on-error branch June 20, 2024 09:08
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.

None yet

3 participants