=== modified file 'lava_dispatcher/client.py'
@@ -119,7 +119,7 @@
self.proc.soft_reboot()
try:
self.proc.expect("Starting kernel")
- self.in_master_shell(120)
+ self.in_master_shell(300)
except:
logging.exception("in_master_shell failed")
self.proc.hard_reboot()
@@ -233,7 +233,7 @@
def boot_linaro_android_image(self):
"""Reboot the system to the test android image."""
self.proc._boot(string_to_list(self.config.get('boot_cmds_android')))
- self.in_test_shell()
+ self.in_test_shell(timeout=900)
self.proc.sendline("export PS1=\"root@linaro: \"")
self.enable_adb_over_tcpip()
=== modified file 'lava_dispatcher/connection.py'
@@ -68,8 +68,9 @@
# set soft reboot timeout 120s, or do a hard reset
logging.info("Rebooting the system")
id = self.proc.expect(
- ['Restarting system.', pexpect.TIMEOUT], timeout=120)
- if id != 0:
+ ['Restarting system.', 'The system is going down for reboot NOW',
+ pexpect.TIMEOUT], timeout=120)
+ if id not in [0,1]:
self.hard_reboot()
def hard_reboot(self):