From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 27 Nov 2009 18:56:12 +0000 (-0800) Subject: When tests fail, runtests.py should exit with non-zero exit status. X-Git-Tag: 0.12.1~114^2~3 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=79412ce56e726bec7d55e97302acac7a99f7ccb0;p=cython.git When tests fail, runtests.py should exit with non-zero exit status. --- 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()