Message ID | 20110906023913.5412.66771.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/client.py' --- lava_dispatcher/client.py 2011-09-02 03:00:59 +0000 +++ lava_dispatcher/client.py 2011-09-06 02:22:12 +0000 @@ -109,6 +109,11 @@ def soft_reboot(self): self.proc.sendline("reboot") + # set soft reboot timeout 60s, or do a hard reset + id = self.proc.expect(['Restarting system', pexpect.TIMEOUT], + timeout=60) + if id != 0: + self.hard_reboot() def hard_reboot(self): self.proc.send("~$")