Index: gm/rebaseline_server/test_all.py |
diff --git a/gm/rebaseline_server/test_all.py b/gm/rebaseline_server/test_all.py |
index ba3d8fdbe0a11ddbc0168e313d63d278b95a290b..299d1340f23ec78664070d96510f81d296a3feb6 100755 |
--- a/gm/rebaseline_server/test_all.py |
+++ b/gm/rebaseline_server/test_all.py |
@@ -19,8 +19,10 @@ import unittest |
def main(): |
suite = unittest.TestLoader().discover(os.path.dirname(__file__), |
pattern='*_test.py') |
- unittest.TextTestRunner(verbosity=2).run(suite) |
- |
+ results = unittest.TextTestRunner(verbosity=2).run(suite) |
+ print repr(results) |
+ if not results.wasSuccessful(): |
+ raise Exception('failed one or more unittests') |
if __name__ == '__main__': |
main() |