| 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 os | 10 import os |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 # Wait for logcat_monitor to pull existing logcat | 390 # Wait for logcat_monitor to pull existing logcat |
| 391 RunCmd(['sleep', '5']) | 391 RunCmd(['sleep', '5']) |
| 392 | 392 |
| 393 | 393 |
| 394 def ProvisionDevices(options): | 394 def ProvisionDevices(options): |
| 395 bb_annotations.PrintNamedStep('provision_devices') | 395 bb_annotations.PrintNamedStep('provision_devices') |
| 396 | 396 |
| 397 if not bb_utils.TESTING: | 397 if not bb_utils.TESTING: |
| 398 # Restart adb to work around bugs, sleep to wait for usb discovery. | 398 # Restart adb to work around bugs, sleep to wait for usb discovery. |
| 399 device_utils.DeviceUtils(None).old_interface.RestartAdbServer() | 399 device_utils.RestartServer() |
| 400 RunCmd(['sleep', '1']) | 400 RunCmd(['sleep', '1']) |
| 401 provision_cmd = ['build/android/provision_devices.py', '-t', options.target] | 401 provision_cmd = ['build/android/provision_devices.py', '-t', options.target] |
| 402 if options.auto_reconnect: | 402 if options.auto_reconnect: |
| 403 provision_cmd.append('--auto-reconnect') | 403 provision_cmd.append('--auto-reconnect') |
| 404 RunCmd(provision_cmd) | 404 RunCmd(provision_cmd) |
| 405 | 405 |
| 406 | 406 |
| 407 def DeviceStatusCheck(options): | 407 def DeviceStatusCheck(options): |
| 408 bb_annotations.PrintNamedStep('device_status_check') | 408 bb_annotations.PrintNamedStep('device_status_check') |
| 409 cmd = ['build/android/buildbot/bb_device_status_check.py'] | 409 cmd = ['build/android/buildbot/bb_device_status_check.py'] |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 651 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 652 if options.coverage_bucket: | 652 if options.coverage_bucket: |
| 653 setattr(options, 'coverage_dir', | 653 setattr(options, 'coverage_dir', |
| 654 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 654 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 655 | 655 |
| 656 MainTestWrapper(options) | 656 MainTestWrapper(options) |
| 657 | 657 |
| 658 | 658 |
| 659 if __name__ == '__main__': | 659 if __name__ == '__main__': |
| 660 sys.exit(main(sys.argv)) | 660 sys.exit(main(sys.argv)) |
| OLD | NEW |