diff options
Diffstat (limited to 'simple_unit_tests.py')
-rw-r--r-- | simple_unit_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/simple_unit_tests.py b/simple_unit_tests.py index 888b4a8..28bdb16 100644 --- a/simple_unit_tests.py +++ b/simple_unit_tests.py @@ -458,4 +458,6 @@ if __name__ == '__main__': # make into a suite and run it - this will run the tests in the same order # they are declared in this module suite = unittest.TestSuite(cls() for cls in test_case_classes) - unittest.TextTestRunner().run(suite) + result = unittest.TextTestRunner().run(suite) + + exit(0 if result.wasSuccessful() else 1) |