Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 265743002: [Android] Switch to new interfaces of GetAVDs and RestartAdbServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + nitfixes Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/android/pylib/device/OWNERS » ('j') | build/android/pylib/device/OWNERS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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))
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/device/OWNERS » ('j') | build/android/pylib/device/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698