summaryrefslogtreecommitdiffstats
path: root/testrunner/adb_interface.py
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@android.com>2011-06-07 10:10:38 -0700
committerBrett Chabot <brettchabot@android.com>2011-06-07 10:16:02 -0700
commitcdfaae1a3409d380fab8228545d1b0d28ca070f7 (patch)
tree8e03a16b75234f262fa8bd29721d0f745274274b /testrunner/adb_interface.py
parent8207c8935bb7f4046656dc9730ce9b7cf848584d (diff)
downloadandroid_development-cdfaae1a3409d380fab8228545d1b0d28ca070f7.tar.gz
android_development-cdfaae1a3409d380fab8228545d1b0d28ca070f7.tar.bz2
android_development-cdfaae1a3409d380fab8228545d1b0d28ca070f7.zip
Make runtest reboot and root more robust.
Add a couple sleep statements to allow time for device to go offline. Change-Id: I3a5fffc948f6c7b67bcdec4526990a6becd2d02f
Diffstat (limited to 'testrunner/adb_interface.py')
-rwxr-xr-xtestrunner/adb_interface.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testrunner/adb_interface.py b/testrunner/adb_interface.py
index 3bd4396f4..feb1c893b 100755
--- a/testrunner/adb_interface.py
+++ b/testrunner/adb_interface.py
@@ -155,6 +155,7 @@ class AdbInterface:
return True
elif "restarting adbd as root" in output:
# device will disappear from adb, wait for it to come back
+ time.sleep(2)
self.SendCommand("wait-for-device")
return True
else: