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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | gm/tests/run.sh » ('j') | gm/tests/run.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2014 Google Inc. 4 Copyright 2014 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 Run all unittests within this directory tree, recursing into subdirectories. 9 Run all unittests within this directory tree, recursing into subdirectories.
10 10
11 TODO(epoger): Launch this automatically on the housekeeper bot, but first make 11 TODO(epoger): Launch this automatically on the housekeeper bot, but first make
12 sure it works properly after having been checked out (from both git and svn) 12 sure it works properly after having been checked out (from both git and svn)
13 """ 13 """
14 14
15 import os 15 import os
16 import unittest 16 import unittest
17 17
18 18
19 def main(): 19 def main():
20 suite = unittest.TestLoader().discover(os.path.dirname(__file__), 20 suite = unittest.TestLoader().discover(os.path.dirname(__file__),
21 pattern='*_test.py') 21 pattern='*_test.py')
22 unittest.TextTestRunner(verbosity=2).run(suite) 22 results = unittest.TextTestRunner(verbosity=2).run(suite)
23 23 print repr(results)
24 if not results.wasSuccessful():
25 raise Exception('failed one or more unittests')
24 26
25 if __name__ == '__main__': 27 if __name__ == '__main__':
26 main() 28 main()
OLDNEW
« 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