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 RunCmd(['build/android/provision_devices.py']) |
Isaac (away)
2013/04/05 05:41:18
Let's pass target, even though it's currently used
Isaac (away)
2013/04/05 05:41:47
*even though it's not currently used.
Siva Chandra
2013/04/05 20:55:31
Done.
| |
277 target = options.factory_properties.get('target', 'Debug') | |
278 RunCmd(['build/android/provision_devices.py', '-t', target]) | |
279 | 277 |
280 if options.install: | 278 if options.install: |
281 test_obj = INSTRUMENTATION_TESTS[options.install] | 279 test_obj = INSTRUMENTATION_TESTS[options.install] |
282 InstallApk(options, test_obj, print_step=True) | 280 InstallApk(options, test_obj, print_step=True) |
283 | 281 |
284 if 'chromedriver' in options.test_filter: | 282 if 'chromedriver' in options.test_filter: |
285 RunChromeDriverTests() | 283 RunChromeDriverTests() |
286 if 'unit' in options.test_filter: | 284 if 'unit' in options.test_filter: |
287 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) | 285 RunTestSuites(options, gtest_config.STABLE_TEST_SUITES) |
288 if 'ui' in options.test_filter: | 286 if 'ui' in options.test_filter: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 'slave', 'android')) | 367 'slave', 'android')) |
370 if os.path.exists(build_internal_android): | 368 if os.path.exists(build_internal_android): |
371 android_paths.insert(0, build_internal_android) | 369 android_paths.insert(0, build_internal_android) |
372 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) | 370 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) |
373 | 371 |
374 MainTestWrapper(options) | 372 MainTestWrapper(options) |
375 | 373 |
376 | 374 |
377 if __name__ == '__main__': | 375 if __name__ == '__main__': |
378 sys.exit(main(sys.argv)) | 376 sys.exit(main(sys.argv)) |
OLD | NEW |