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

Side by Side Diff: gm/test_all.py

Issue 848073005: Revert "delete old things!" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « gm/rename_config.py ('k') | gm/tests/.gitignore » ('j') | no next file with comments »
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 11
12 import os 12 import os
13 import unittest 13 import unittest
14 14
15 15
16 def main(): 16 def main():
17 suite = unittest.TestLoader().discover(os.path.dirname(__file__), 17 suite = unittest.TestLoader().discover(os.path.dirname(__file__),
18 pattern='*_test.py') 18 pattern='*_test.py')
19 results = unittest.TextTestRunner(verbosity=2).run(suite) 19 results = unittest.TextTestRunner(verbosity=2).run(suite)
20 print repr(results) 20 print repr(results)
21 if not results.wasSuccessful(): 21 if not results.wasSuccessful():
22 raise Exception('failed one or more unittests') 22 raise Exception('failed one or more unittests')
23 23
24 if __name__ == '__main__': 24 if __name__ == '__main__':
25 main() 25 main()
OLDNEW
« no previous file with comments | « gm/rename_config.py ('k') | gm/tests/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698