Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: gm/rebaseline_server/test_all.py

Issue 143983017: make GM self-test run gm/rebaseline_server unittests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gm/tests/run.sh » ('j') | gm/tests/run.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | gm/tests/run.sh » ('j') | gm/tests/run.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698