Build continues on failed tests

Here is a screenshot demonstrating the issue:

And here is a link to the build in question: https://circleci.com/gh/Sub-Tech/Analytics-Web/36

Basically I’m running my tests under uwsgi (via uwsgi --pyrun) and pytest (pytest: helps you write better programs — pytest documentation), the output shows error (and even highlights it in red), but the build continues as if the build stage passed.

This is my circle.yml test section:

test:
override:
- uwsgi --pyrun tests/run.py --master

Any insight into this?

pass or fail is determined by the exit code. If you’ll add ; echo $? to your command, you will see exit code 0