# HG changeset patch # User Augie Fackler # Date 1267487100 21600 # Node ID f3e5ef8760cbb534b72c950b8929f3ffcafba91a # Parent 880ef2ac1e0d782f8205a444c91f682b4555e238 tests.run: exit nonzero if tests did not pass diff --git a/tests/run.py b/tests/run.py --- a/tests/run.py +++ b/tests/run.py @@ -64,4 +64,6 @@ if __name__ == '__main__': suite.append(all[arg].suite()) runner = unittest.TextTestRunner(**kwargs) - runner.run(unittest.TestSuite(suite)) + result = runner.run(unittest.TestSuite(suite)) + if not result.wasSuccessful(): + sys.exit(1)