Make runtest reboot and root more robust.

Add a couple sleep statements to allow time for device to go offline.

Change-Id: I3a5fffc948f6c7b67bcdec4526990a6becd2d02f
This commit is contained in:
Brett Chabot
2011-06-07 10:10:38 -07:00
parent 8207c8935b
commit cdfaae1a34
2 changed files with 4 additions and 0 deletions

View File

@@ -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: