From bd04e61b6fa8a9960ea5ffe0cd578f8ba92339f0 Mon Sep 17 00:00:00 2001 From: Miguel Angel Ajo Date: Sun, 1 Feb 2015 19:20:20 +0100 Subject: [PATCH] qa/test.py change to make sure failed tests return 1 in all systems. --- qa/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/test.py b/qa/test.py index 88ce7bd841..3ebb93740f 100644 --- a/qa/test.py +++ b/qa/test.py @@ -12,7 +12,7 @@ if __name__ == '__main__': results = unittest.TextTestRunner(verbosity=100).run(testsuite) # Return an error code if any of the testsuite tests fail - if len(results.errors) > 0: + if not results.wasSuccessful(): sys.exit(1)