OLD | NEW |
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 hashlib | 8 import hashlib |
9 import json | 9 import json |
10 import multiprocessing | 10 import multiprocessing |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 if suite == 'content_browsertests': | 147 if suite == 'content_browsertests': |
148 cmd.append('--num_retries=1') | 148 cmd.append('--num_retries=1') |
149 RunCmd(cmd) | 149 RunCmd(cmd) |
150 | 150 |
151 | 151 |
152 def RunChromeDriverTests(options): | 152 def RunChromeDriverTests(options): |
153 """Run all the steps for running chromedriver tests.""" | 153 """Run all the steps for running chromedriver tests.""" |
154 bb_annotations.PrintNamedStep('chromedriver_annotation') | 154 bb_annotations.PrintNamedStep('chromedriver_annotation') |
155 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', | 155 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', |
156 '--android-packages=%s,%s,%s' % | 156 '--android-packages=%s,%s,%s' % |
157 (constants.PACKAGE_INFO['chromium_test_shell'].package, | 157 ('chromium_test_shell', |
158 constants.PACKAGE_INFO['chrome_stable'].package, | 158 'chrome_stable', |
159 constants.PACKAGE_INFO['chrome_beta'].package), | 159 'chrome_beta'), |
160 '--revision=%s' % _GetRevision(options), | 160 '--revision=%s' % _GetRevision(options), |
161 '--update-log']) | 161 '--update-log']) |
162 | 162 |
163 | 163 |
164 def InstallApk(options, test, print_step=False): | 164 def InstallApk(options, test, print_step=False): |
165 """Install an apk to all phones. | 165 """Install an apk to all phones. |
166 | 166 |
167 Args: | 167 Args: |
168 options: options object | 168 options: options object |
169 test: An I_TEST namedtuple | 169 test: An I_TEST namedtuple |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 604 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
605 if options.coverage_bucket: | 605 if options.coverage_bucket: |
606 setattr(options, 'coverage_dir', | 606 setattr(options, 'coverage_dir', |
607 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 607 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
608 | 608 |
609 MainTestWrapper(options) | 609 MainTestWrapper(options) |
610 | 610 |
611 | 611 |
612 if __name__ == '__main__': | 612 if __name__ == '__main__': |
613 sys.exit(main(sys.argv)) | 613 sys.exit(main(sys.argv)) |
OLD | NEW |