[project][qemu] Increase adb wait-for-device timeout to 5 min
Current adb timeout of 2 minutes is sometimes not enough on slow build
servers. Also increase the tieout on the down path.
Bug: 162097382
Change-Id: I39d77493d65f3dc49981a7d61206246b30c339f4
diff --git a/project/qemu/qemu.py b/project/qemu/qemu.py
index 3008900..03c1d77 100644
--- a/project/qemu/qemu.py
+++ b/project/qemu/qemu.py
@@ -626,7 +626,7 @@
sock.close()
self.check_adb(["connect", "localhost:%d" % port])
self.scan_transport(port)
- self.check_adb(["wait-for-device"], timeout=120)
+ self.check_adb(["wait-for-device"], timeout=300)
self.adb_root()
# Files put onto the data partition in the Android build will not
@@ -641,7 +641,7 @@
self.check_adb(["disconnect", "localhost:%d" % port])
# Wait until QEMU's forward has expired
- CONNECT_MAX_TRIES = 120
+ CONNECT_MAX_TRIES = 300
connect_tries = 0
while True:
try: