summaryrefslogtreecommitdiffstats
path: root/python/tests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/tests.py')
-rwxr-xr-xpython/tests/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/tests/tests.py b/python/tests/tests.py
index de359ee5..644135eb 100755
--- a/python/tests/tests.py
+++ b/python/tests/tests.py
@@ -38,6 +38,7 @@ testSuites = (
'login_tests',
)
+success = True
for testSuite in testSuites:
fp, pathname, description = imp.find_module(testSuite)
try:
@@ -58,5 +59,8 @@ for testSuite in testSuites:
print doc
print '-' * len(doc)
- unittest.TextTestRunner(verbosity=2).run(module.allTests)
+ result = unittest.TextTestRunner(verbosity=2).run(module.allTests)
+ success = success and result.wasSuccessful()
+
+sys.exit(not success)