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

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

Issue 23075028: Get WebRTC resources on Android Testers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed the path argument Created 7 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
« 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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 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 os 6 import os
7 import sys 7 import sys
8 8
9 import bb_utils 9 import bb_utils
10 import bb_annotations 10 import bb_annotations
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'run_findbugs_plugin_tests.py')] + build_type) 95 'run_findbugs_plugin_tests.py')] + build_type)
96 96
97 97
98 def BisectPerfRegression(_): 98 def BisectPerfRegression(_):
99 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'), 99 RunCmd([SrcPath('tools', 'prepare-bisect-perf-regression.py'),
100 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) 100 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)])
101 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'), 101 RunCmd([SrcPath('tools', 'run-bisect-perf-regression.py'),
102 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)]) 102 '-w', os.path.join(constants.DIR_SOURCE_ROOT, os.pardir)])
103 103
104 104
105 def DownloadWebRTCResources(_):
106 bb_annotations.PrintNamedStep('download_resources')
107 RunCmd([SrcPath('third_party', 'webrtc', 'tools', 'update_resources.py'),
108 '-p', '../../../'], halt_on_failure=True)
109
110
105 def GetHostStepCmds(): 111 def GetHostStepCmds():
106 return [ 112 return [
107 ('compile', Compile), 113 ('compile', Compile),
108 ('extract_build', ExtractBuild), 114 ('extract_build', ExtractBuild),
109 ('check_webview_licenses', CheckWebViewLicenses), 115 ('check_webview_licenses', CheckWebViewLicenses),
110 ('bisect_perf_regression', BisectPerfRegression), 116 ('bisect_perf_regression', BisectPerfRegression),
117 ('download_webrtc_resources', DownloadWebRTCResources),
111 ('findbugs', FindBugs), 118 ('findbugs', FindBugs),
112 ('zip_build', ZipBuild) 119 ('zip_build', ZipBuild)
113 ] 120 ]
114 121
115 122
116 def GetHostStepsOptParser(): 123 def GetHostStepsOptParser():
117 parser = bb_utils.GetParser() 124 parser = bb_utils.GetParser()
118 parser.add_option('--steps', help='Comma separated list of host tests.') 125 parser.add_option('--steps', help='Comma separated list of host tests.')
119 parser.add_option('--build-targets', default='All', 126 parser.add_option('--build-targets', default='All',
120 help='Comma separated list of build targets.') 127 help='Comma separated list of build targets.')
(...skipping 10 matching lines...) Expand all
131 return sys.exit('Unused args %s' % args) 138 return sys.exit('Unused args %s' % args)
132 139
133 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 140 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
134 141
135 if options.steps: 142 if options.steps:
136 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) 143 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options)
137 144
138 145
139 if __name__ == '__main__': 146 if __name__ == '__main__':
140 sys.exit(main(sys.argv)) 147 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