From 1fb211b7983b46cbce49c645cc5416bbe6e68b79 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 4 Dec 2009 16:10:40 +0100 Subject: [PATCH 5/5] testsuite: Exit with nonzero on failed tests This will also cause "make check" to properly report failure. --- tests/run | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/run b/tests/run index 4090ac5..3a61780 100755 --- a/tests/run +++ b/tests/run @@ -1212,7 +1212,8 @@ if __name__ == '__main__': else: tests = unittest.TestLoader().loadTestsFromNames(args, __import__('__main__')) - unittest.TextTestRunner(verbosity=2).run(tests) - - + if unittest.TextTestRunner(verbosity=2).run(tests).wasSuccessful(): + sys.exit(0) + else: + sys.exit(1) -- 1.6.5