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

Side by Side Diff: Tools/Scripts/webkitpy/test/main.py

Issue 546613003: Add a new 'format-webkitpy' command that will reformat code to the style guide. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ready for review Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2012 Google, Inc. 1 # Copyright (C) 2012 Google, Inc.
2 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) 2 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions 5 # modification, are permitted provided that the following conditions
6 # are met: 6 # are met:
7 # 1. Redistributions of source code must retain the above copyright 7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # 2. Redistributions in binary form must reproduce the above copyright 9 # 2. Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the 10 # notice, this list of conditions and the following disclaimer in the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 wkf = WebKitFinder(filesystem) 52 wkf = WebKitFinder(filesystem)
53 tester = Tester(filesystem, wkf) 53 tester = Tester(filesystem, wkf)
54 tester.add_tree(wkf.path_from_webkit_base('Tools', 'Scripts'), 'webkitpy') 54 tester.add_tree(wkf.path_from_webkit_base('Tools', 'Scripts'), 'webkitpy')
55 55
56 tester.skip(('webkitpy.common.checkout.scm.scm_unittest',), 'are really, rea lly, slow', 31818) 56 tester.skip(('webkitpy.common.checkout.scm.scm_unittest',), 'are really, rea lly, slow', 31818)
57 if sys.platform == 'win32': 57 if sys.platform == 'win32':
58 tester.skip(('webkitpy.common.checkout', 'webkitpy.common.config', 'webk itpy.tool', 'webkitpy.w3c', 'webkitpy.layout_tests.layout_package.bot_test_expec tations'), 'fail horribly on win32', 54526) 58 tester.skip(('webkitpy.common.checkout', 'webkitpy.common.config', 'webk itpy.tool', 'webkitpy.w3c', 'webkitpy.layout_tests.layout_package.bot_test_expec tations'), 'fail horribly on win32', 54526)
59 59
60 # This only needs to run on Unix, so don't worry about win32 for now. 60 # This only needs to run on Unix, so don't worry about win32 for now.
61 appengine_sdk_path = '/usr/local/google_appengine' 61 appengine_sdk_path = '/usr/local/google_appengine'
62 if os.path.exists(appengine_sdk_path): 62 if False and os.path.exists(appengine_sdk_path):
eseidel 2014/09/09 23:10:55 ?
Dirk Pranke 2014/09/09 23:32:22 Whoops. I was trying to skip the appengine tests w
63 if not appengine_sdk_path in sys.path: 63 if not appengine_sdk_path in sys.path:
64 sys.path.append(appengine_sdk_path) 64 sys.path.append(appengine_sdk_path)
65 import dev_appserver 65 import dev_appserver
66 from google.appengine.dist import use_library 66 from google.appengine.dist import use_library
67 use_library('django', '1.2') 67 use_library('django', '1.2')
68 dev_appserver.fix_sys_path() 68 dev_appserver.fix_sys_path()
69 tester.add_tree(wkf.path_from_webkit_base('Tools', 'TestResultServer')) 69 tester.add_tree(wkf.path_from_webkit_base('Tools', 'TestResultServer'))
70 else: 70 else:
71 _log.info('Skipping TestResultServer tests; the Google AppEngine Python SDK is not installed.') 71 _log.info('Skipping TestResultServer tests; the Google AppEngine Python SDK is not installed.')
72 72
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 def _log_exception(self): 209 def _log_exception(self):
210 s = StringIO.StringIO() 210 s = StringIO.StringIO()
211 traceback.print_exc(file=s) 211 traceback.print_exc(file=s)
212 for l in s.buflist: 212 for l in s.buflist:
213 _log.error(' ' + l.rstrip()) 213 _log.error(' ' + l.rstrip())
214 214
215 215
216 216
217 if __name__ == '__main__': 217 if __name__ == '__main__':
218 sys.exit(main()) 218 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698