| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 # Wait for logcat_monitor to pull existing logcat | 410 # Wait for logcat_monitor to pull existing logcat |
| 411 RunCmd(['sleep', '5']) | 411 RunCmd(['sleep', '5']) |
| 412 | 412 |
| 413 | 413 |
| 414 def ProvisionDevices(options): | 414 def ProvisionDevices(options): |
| 415 bb_annotations.PrintNamedStep('provision_devices') | 415 bb_annotations.PrintNamedStep('provision_devices') |
| 416 | 416 |
| 417 if not bb_utils.TESTING: | 417 if not bb_utils.TESTING: |
| 418 # Restart adb to work around bugs, sleep to wait for usb discovery. | 418 # Restart adb to work around bugs, sleep to wait for usb discovery. |
| 419 device_utils.DeviceUtils(None).old_interface.RestartAdbServer() | 419 device_utils.RestartServer() |
| 420 RunCmd(['sleep', '1']) | 420 RunCmd(['sleep', '1']) |
| 421 | 421 |
| 422 if not options.no_reboot: | 422 if not options.no_reboot: |
| 423 RebootDevices() | 423 RebootDevices() |
| 424 provision_cmd = ['build/android/provision_devices.py', '-t', options.target] | 424 provision_cmd = ['build/android/provision_devices.py', '-t', options.target] |
| 425 if options.auto_reconnect: | 425 if options.auto_reconnect: |
| 426 provision_cmd.append('--auto-reconnect') | 426 provision_cmd.append('--auto-reconnect') |
| 427 RunCmd(provision_cmd) | 427 RunCmd(provision_cmd) |
| 428 | 428 |
| 429 | 429 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 673 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 674 if options.coverage_bucket: | 674 if options.coverage_bucket: |
| 675 setattr(options, 'coverage_dir', | 675 setattr(options, 'coverage_dir', |
| 676 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 676 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 677 | 677 |
| 678 MainTestWrapper(options) | 678 MainTestWrapper(options) |
| 679 | 679 |
| 680 | 680 |
| 681 if __name__ == '__main__': | 681 if __name__ == '__main__': |
| 682 sys.exit(main(sys.argv)) | 682 sys.exit(main(sys.argv)) |
| OLD | NEW |