Commit 5e4e9df4 by Gabriel Falcao

forcing lettuce to exit the process after running all the tests. closes #211

parent cbd6b5bd
......@@ -79,8 +79,8 @@ def main(args=sys.argv[1:]):
)
result = runner.run()
if not result or result.steps != result.steps_passed:
raise SystemExit(1)
failed = result or result.steps != result.steps_passed
raise SystemExit(int(failed))
if __name__ == '__main__':
main()
......@@ -145,3 +145,4 @@ class Command(BaseCommand):
registry.call_hook('after', 'harvest', results)
server.stop(failed)
teardown_test_environment()
raise SystemExit(int(failed))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment