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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 cmd = ['build/android/test_runner.py', 'gtest', '-s', suite] + args | 122 cmd = ['build/android/test_runner.py', 'gtest', '-s', suite] + args |
123 if suite == 'content_browsertests': | 123 if suite == 'content_browsertests': |
124 cmd.append('--num_retries=1') | 124 cmd.append('--num_retries=1') |
125 RunCmd(cmd) | 125 RunCmd(cmd) |
126 | 126 |
127 def RunChromeDriverTests(_): | 127 def RunChromeDriverTests(_): |
128 """Run all the steps for running chromedriver tests.""" | 128 """Run all the steps for running chromedriver tests.""" |
129 bb_annotations.PrintNamedStep('chromedriver_annotation') | 129 bb_annotations.PrintNamedStep('chromedriver_annotation') |
130 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', | 130 RunCmd(['chrome/test/chromedriver/run_buildbot_steps.py', |
131 '--android-packages=%s,%s,%s' % | 131 '--android-packages=%s,%s,%s' % |
132 (constants.CHROMIUM_TEST_SHELL_PACKAGE, | 132 (constants.PACKAGE_INFO['chromium_test_shell'].package, |
133 constants.CHROME_STABLE_PACKAGE, | 133 constants.PACKAGE_INFO['chrome_stable'].package, |
134 constants.CHROME_BETA_PACKAGE)]) | 134 constants.PACKAGE_INFO['chrome_beta'].package)]) |
135 | 135 |
136 def InstallApk(options, test, print_step=False): | 136 def InstallApk(options, test, print_step=False): |
137 """Install an apk to all phones. | 137 """Install an apk to all phones. |
138 | 138 |
139 Args: | 139 Args: |
140 options: options object | 140 options: options object |
141 test: An I_TEST namedtuple | 141 test: An I_TEST namedtuple |
142 print_step: Print a buildbot step | 142 print_step: Print a buildbot step |
143 """ | 143 """ |
144 if print_step: | 144 if print_step: |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 469 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
470 if options.coverage_bucket: | 470 if options.coverage_bucket: |
471 setattr(options, 'coverage_dir', | 471 setattr(options, 'coverage_dir', |
472 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 472 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
473 | 473 |
474 MainTestWrapper(options) | 474 MainTestWrapper(options) |
475 | 475 |
476 | 476 |
477 if __name__ == '__main__': | 477 if __name__ == '__main__': |
478 sys.exit(main(sys.argv)) | 478 sys.exit(main(sys.argv)) |
OLD | NEW |