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

Side by Side Diff: tools/test_all.py

Issue 310093003: rebaseline_server: download actual-results.json files from GCS instead of SVN (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: combine import_gm and import_tools into fix_pythonpath Created 6 years, 6 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
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
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)
13 """ 10 """
14 11
15 import os 12 import os
16 import unittest 13 import unittest
17 14
15 from tests import skimage_self_test
16
18 17
19 def main(): 18 def main():
19 # First, run any tests that cannot be automatically discovered (because
20 # they don't use Python's unittest framework).
21 skimage_self_test.main()
22
23 # Now discover/run all tests that use Python's unittest framework.
20 suite = unittest.TestLoader().discover(os.path.dirname(__file__), 24 suite = unittest.TestLoader().discover(os.path.dirname(__file__),
21 pattern='*_test.py') 25 pattern='*_test.py')
22 results = unittest.TextTestRunner(verbosity=2).run(suite) 26 results = unittest.TextTestRunner(verbosity=2).run(suite)
23 print repr(results) 27 print repr(results)
24 if not results.wasSuccessful(): 28 if not results.wasSuccessful():
25 raise Exception('failed one or more unittests') 29 raise Exception('failed one or more unittests')
26 30
27 if __name__ == '__main__': 31 if __name__ == '__main__':
28 main() 32 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698