From 79412ce56e726bec7d55e97302acac7a99f7ccb0 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 27 Nov 2009 10:56:12 -0800 Subject: [PATCH] When tests fail, runtests.py should exit with non-zero exit status. --- runtests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 5dc5ec32..2ff4a3ac 100644 --- a/runtests.py +++ b/runtests.py @@ -856,7 +856,7 @@ if __name__ == '__main__': os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3], 'test'), 'pyregr')) - unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite) + result = unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite) if options.coverage: coverage.stop() @@ -875,3 +875,5 @@ if __name__ == '__main__': if options.with_refnanny: import refnanny sys.stderr.write("\n".join([repr(x) for x in refnanny.reflog])) + + sys.exit(not result.wasSuccessful() -- 2.26.2