| 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 multiprocessing | 9 import multiprocessing |
| 10 import os | 10 import os |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 def RunChromeDriverTests(options): | 144 def RunChromeDriverTests(options): |
| 145 """Run all the steps for running chromedriver tests.""" | 145 """Run all the steps for running chromedriver tests.""" |
| 146 bb_annotations.PrintNamedStep('chromedriver_annotation') | 146 bb_annotations.PrintNamedStep('chromedriver_annotation') |
| 147 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', | 147 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', |
| 148 '--android-packages=%s,%s,%s' % | 148 '--android-packages=%s,%s,%s' % |
| 149 (constants.PACKAGE_INFO['chromium_test_shell'].package, | 149 (constants.PACKAGE_INFO['chromium_test_shell'].package, |
| 150 constants.PACKAGE_INFO['chrome_stable'].package, | 150 constants.PACKAGE_INFO['chrome_stable'].package, |
| 151 constants.PACKAGE_INFO['chrome_beta'].package), | 151 constants.PACKAGE_INFO['chrome_beta'].package), |
| 152 '--revision=%s' % _GetRevision(options), | 152 '--revision=%s' % _GetRevision(options), |
| 153 '--update_log']) | 153 '--update-log']) |
| 154 | 154 |
| 155 def InstallApk(options, test, print_step=False): | 155 def InstallApk(options, test, print_step=False): |
| 156 """Install an apk to all phones. | 156 """Install an apk to all phones. |
| 157 | 157 |
| 158 Args: | 158 Args: |
| 159 options: options object | 159 options: options object |
| 160 test: An I_TEST namedtuple | 160 test: An I_TEST namedtuple |
| 161 print_step: Print a buildbot step | 161 print_step: Print a buildbot step |
| 162 """ | 162 """ |
| 163 if print_step: | 163 if print_step: |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 498 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 499 if options.coverage_bucket: | 499 if options.coverage_bucket: |
| 500 setattr(options, 'coverage_dir', | 500 setattr(options, 'coverage_dir', |
| 501 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 501 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 502 | 502 |
| 503 MainTestWrapper(options) | 503 MainTestWrapper(options) |
| 504 | 504 |
| 505 | 505 |
| 506 if __name__ == '__main__': | 506 if __name__ == '__main__': |
| 507 sys.exit(main(sys.argv)) | 507 sys.exit(main(sys.argv)) |
| OLD | NEW |