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

allow runway tests to exit 0 without signaling failure #372

Merged
merged 5 commits into from Jun 29, 2020

Conversation

troyready
Copy link
Contributor

This will check the exit code of tests so any that have called sys.exit(0) (e.g. yamllint) won't trigger Runway to count it as failed.

This will check the exit code of tests so any that have called
sys.exit(0) (e.g. yamllint) won't trigger Runway to count it as failed.
@@ -78,6 +78,8 @@ def execute(self):
# tool it is wrapping.
if not isinstance(err, SystemExit):
traceback.print_exc()
elif err.code == 0:
next # Tests calling sys.exit(0) don't indicate failure
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are looking for continue here

Suggested change
next # Tests calling sys.exit(0) don't indicate failure
continue

@ITProKyle ITProKyle added the bug Something isn't working label Jun 29, 2020
@troyready troyready merged commit dd8656a into master Jun 29, 2020
@troyready troyready deleted the bugfix/allow_tests_to_exit_0 branch June 29, 2020 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants