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 json | 8 import json |
9 import multiprocessing | 9 import multiprocessing |
10 import optparse | 10 import optparse |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 RunCmd(['sleep', '5']) | 265 RunCmd(['sleep', '5']) |
266 | 266 |
267 if options.reboot: | 267 if options.reboot: |
268 RebootDevices() | 268 RebootDevices() |
269 | 269 |
270 # Device check and alert emails | 270 # Device check and alert emails |
271 buildbot_report.PrintNamedStep('device_status_check') | 271 buildbot_report.PrintNamedStep('device_status_check') |
272 RunCmd(['build/android/device_status_check.py']) | 272 RunCmd(['build/android/device_status_check.py']) |
273 | 273 |
274 # Provision devices | 274 # Provision devices |
275 if options.auto_reconnect: | 275 buildbot_report.PrintNamedStep('provision_devices') |
276 buildbot_report.PrintNamedStep('provision_devices') | 276 target = options.factory_properties.get('target', 'Debug') |
277 target = options.factory_properties.get('target', 'Debug') | 277 RunCmd(['build/android/provision_devices.py', '-t', target]) |
278 RunCmd(['build/android/provision_devices.py', '-t', target]) | |
279 | 278 |
280 if options.install: | 279 if options.install: |
281 test_obj = INSTRUMENTATION_TESTS[options.install] | 280 test_obj = INSTRUMENTATION_TESTS[options.install] |
282 InstallApk(options, test_obj, print_step=True) | 281 InstallApk(options, test_obj, print_step=True) |
283 | 282 |
284 if 'chromedriver' in options.test_filter: | 283 if 'chromedriver' in options.test_filter: |
285 RunChromeDriverTests() | 284 RunChromeDriverTests() |
286 if 'unit' in options.test_filter: | 285 if 'unit' in options.test_filter: |
287 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) | 286 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) |
288 if 'ui' in options.test_filter: | 287 if 'ui' in options.test_filter: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 'slave', 'android')) | 368 'slave', 'android')) |
370 if os.path.exists(build_internal_android): | 369 if os.path.exists(build_internal_android): |
371 android_paths.insert(0, build_internal_android) | 370 android_paths.insert(0, build_internal_android) |
372 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) | 371 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) |
373 | 372 |
374 MainTestWrapper(options) | 373 MainTestWrapper(options) |
375 | 374 |
376 | 375 |
377 if __name__ == '__main__': | 376 if __name__ == '__main__': |
378 sys.exit(main(sys.argv)) | 377 sys.exit(main(sys.argv)) |
OLD | NEW |