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 command line argument to specify exit code on response errors #992

Merged
merged 3 commits into from
Apr 29, 2019
Merged

Add command line argument to specify exit code on response errors #992

merged 3 commits into from
Apr 29, 2019

Conversation

Stateford
Copy link
Contributor

@Stateford Stateford commented Apr 6, 2019

Fixes #560. Give an option to disable it. It's probably too late to change the functionality to an opt-in, but exit codes should only post if there's actually a problem with the binary, not because there was an error in a test.

@cgoldberg
Copy link
Member

cgoldberg commented Apr 7, 2019

I think it would be better if the option was truthy... so --exit-code-on-fail defaulting to True instead of --no-exit-code-on-fail.

@Stateford
Copy link
Contributor Author

I agree, that is a much better way to handle the argument.

locust/main.py Outdated Show resolved Hide resolved
@aldenpeterson-wf
Copy link
Contributor

this LGTM but I want at least one more person's input on what is "intuitive" before declaring this more intuitive :)

@Stateford
Copy link
Contributor Author

Bump.

@aldenpeterson-wf
Copy link
Contributor

aldenpeterson-wf commented Apr 24, 2019

@cgoldberg @mbeacom what do you think on this?

@Stateford I also renamed the PR so it will show up nicer in the autogenerated release notes.

@aldenpeterson-wf aldenpeterson-wf changed the title added option for not posting exit code 1 on error Add command line argument to specify exit code on response errors Apr 24, 2019
@cgoldberg cgoldberg merged commit a54bff7 into locustio:master Apr 29, 2019
@cgoldberg
Copy link
Member

👍 thanks!

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.

Locust exits with 1 on timeouts / errors
3 participants