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

Zero exit code on exception #1172

Closed
mofr opened this issue Nov 26, 2019 · 3 comments
Closed

Zero exit code on exception #1172

mofr opened this issue Nov 26, 2019 · 3 comments
Labels

Comments

@mofr
Copy link

mofr commented Nov 26, 2019

Description

Locust returns zero exit code when an unexpected exception occurs in the task set.

Expected behavior

The exit code is 1.

Actual behavior

The exit code is 0.

Steps to reproduce

class ExampleTaskSet(TaskSet):
    @task()
    def task1(self):
        raise Exception('Test exception')

Environment settings

  • OS: Ubuntu 16.04
  • Python version: CPython 3.6.3
  • Locust version: 0.13.2
@mofr mofr added the bug label Nov 26, 2019
@cyberw
Copy link
Collaborator

cyberw commented Nov 28, 2019

Yes, that is super annoying. I will look into a fix.

@cyberw cyberw closed this as completed in 4aaedfc Nov 28, 2019
@mofr
Copy link
Author

mofr commented Nov 30, 2019

@cyberw Could you link a related PR or provide some information when it will be released please? Thank you very much!

@cyberw
Copy link
Collaborator

cyberw commented Nov 30, 2019

I didnt make a PR, because it was only one line. It will be in the next release, whenever that happens. Or you can just clone from github if you dont want to wait :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants