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

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 12039036: Add support for content shell builder and extra layout tests parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import collections 6 import collections
7 import glob 7 import glob
8 import json 8 import json
9 import multiprocessing 9 import multiprocessing
10 import optparse 10 import optparse
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 buildbot_report.PrintNamedStep('webkit_lint') 180 buildbot_report.PrintNamedStep('webkit_lint')
181 RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py', 181 RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py',
182 '--lint-test-files', 182 '--lint-test-files',
183 '--chromium', 183 '--chromium',
184 '--target', target]) 184 '--target', target])
185 185
186 186
187 def RunWebkitLayoutTests(options): 187 def RunWebkitLayoutTests(options):
188 """Run layout tests on an actual device.""" 188 """Run layout tests on an actual device."""
189 buildbot_report.PrintNamedStep('webkit_tests') 189 buildbot_report.PrintNamedStep('webkit_tests')
190 RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py', 190 cmd_args = [
191 '--no-show-results', 191 '--no-show-results',
192 '--no-new-test-results', 192 '--no-new-test-results',
193 '--full-results-html', 193 '--full-results-html',
194 '--clobber-old-results', 194 '--clobber-old-results',
195 '--exit-after-n-failures', '5000', 195 '--exit-after-n-failures', '5000',
196 '--exit-after-n-crashes-or-timeouts', '100', 196 '--exit-after-n-crashes-or-timeouts', '100',
197 '--debug-rwt-logging', 197 '--debug-rwt-logging',
198 '--results-directory', '..layout-test-results', 198 '--results-directory', '..layout-test-results',
199 '--target', options.target, 199 '--target', options.target,
200 '--builder-name', options.build_properties.get('buildername', ''), 200 '--builder-name', options.build_properties.get('buildername', ''),
201 '--build-number', options.build_properties.get('buildnumber', ''), 201 '--build-number', options.build_properties.get('buildnumber', ''),
202 '--master-name', options.build_properties.get('mastername', ''), 202 '--master-name', options.build_properties.get('mastername', ''),
203 '--build-name', options.build_properties.get('buildername', ''), 203 '--build-name', options.build_properties.get('buildername', ''),
204 '--platform=chromium-android', 204 '--platform=chromium-android']
205 '--test-results-server', 205
206 options.factory_properties.get('test_results_server', '')]) 206 for flag in 'test_results_server', 'driver_name', 'additional_drt_flag':
207 if flag in options.factory_properties:
208 cmd_args.extend(['--%s' % flag.replace('_', '-'),
209 options.factory_properties.get(flag)])
210
211 for f in options.factory_properties.get('additional_expectations_files', []):
212 cmd_args.extend(['--additional-expectations-file',
213 os.path.join(CHROME_SRC, *f)])
214
215 RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py'] + cmd_args)
207 216
208 217
209 def MainTestWrapper(options): 218 def MainTestWrapper(options):
210 # Restart adb to work around bugs, sleep to wait for usb discovery. 219 # Restart adb to work around bugs, sleep to wait for usb discovery.
211 RunCmd(['adb', 'kill-server']) 220 RunCmd(['adb', 'kill-server'])
212 RunCmd(['adb', 'start-server']) 221 RunCmd(['adb', 'start-server'])
213 RunCmd(['sleep', '1']) 222 RunCmd(['sleep', '1'])
214 223
215 # Spawn logcat monitor 224 # Spawn logcat monitor
216 logcat_dir = os.path.join(CHROME_SRC, 'out/logcat') 225 logcat_dir = os.path.join(CHROME_SRC, 'out/logcat')
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 'slave', 'android')) 319 'slave', 'android'))
311 if os.path.exists(build_internal_android): 320 if os.path.exists(build_internal_android):
312 android_paths.insert(0, build_internal_android) 321 android_paths.insert(0, build_internal_android)
313 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) 322 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']])
314 323
315 MainTestWrapper(options) 324 MainTestWrapper(options)
316 325
317 326
318 if __name__ == '__main__': 327 if __name__ == '__main__':
319 sys.exit(main(sys.argv)) 328 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/buildbot/bb_run_bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698