Skip to content

Zero exit code on exception #1172

@mofr

Description

@mofr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions