[Android] Fix provisioning for perf bots on L and/or user builds.

BUG=405950

Review URL: https://codereview.chromium.org/495123002

Cr-Commit-Position: refs/heads/master@{#291231}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291231 0039d316-1c4b-4281-b951-d872f2087c98
parent 0d80b3a8
......@@ -140,7 +140,8 @@ def WipeDeviceIfPossible(device):
try:
device.EnableRoot()
WipeDeviceData(device)
device.Reboot(True, timeout=180, retries=0)
# TODO(jbudorick): Tune the timeout per OS version.
device.Reboot(True, timeout=600, retries=0)
except (errors.DeviceUnresponsiveError, device_errors.CommandFailedError):
pass
......@@ -149,7 +150,10 @@ def ProvisionDevice(device, options, is_perf):
try:
if not options.skip_wipe:
WipeDeviceIfPossible(device)
try:
device.EnableRoot()
except device_errors.CommandFailedError as e:
logging.warning(str(e))
_ConfigureLocalProperties(device, is_perf)
device_settings.ConfigureContentSettings(
device, device_settings.DETERMINISTIC_DEVICE_SETTINGS)
......@@ -187,7 +191,8 @@ def ProvisionDevice(device, options, is_perf):
time.sleep(60)
battery_info = device.old_interface.GetBatteryInfo()
device.RunShellCommand('date -u %f' % time.time(), as_root=True)
device.Reboot(True, timeout=180, retries=0)
# TODO(jbudorick): Tune the timeout per OS version.
device.Reboot(True, timeout=600, retries=0)
props = device.RunShellCommand('getprop')
for prop in props:
logging.info(' %s' % prop)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment