=== modified file 'lava_dispatcher/client/base.py'
@@ -235,10 +235,12 @@
def wait_home_screen(self):
cmd = 'getprop init.svc.bootanim'
for count in range(100):
- self.run(cmd, response=['stopped', pexpect.TIMEOUT], timeout=5)
- if self.match_id == 0:
- return True
- time.sleep(1)
+ try:
+ self.run(cmd, response=['stopped'], timeout=5)
+ if self.match_id == 0:
+ return True
+ except pexpect.TIMEOUT:
+ time.sleep(1)
raise GeneralError('The home screen has not displayed')
def check_device_state(self):
@@ -439,12 +441,12 @@
self.proc.expect(self.tester_str, timeout=120)
#TODO: set up proxy
+ self._disable_suspend()
if self.config.get("enable_network_after_boot_android"):
time.sleep(1)
self._enable_network()
self._enable_adb_over_tcpip()
- self._disable_suspend()
def _disable_suspend(self):
""" disable the suspend of images.