Skip to content

Commit

Permalink
test runner exits with proper error code on failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Cichra committed Jun 29, 2015
1 parent f68b907 commit 3f33304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/tests.py
Expand Up @@ -291,4 +291,5 @@ def testReportWithTwoTransactions(self):
if exec_type in ('all', 'report'):
suite.addTest(TestThreeScaleReport(test))

unittest.TextTestRunner(verbosity=2).run(suite)
result = unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful()
sys.exit(not result)

0 comments on commit 3f33304

Please sign in to comment.