Message ID | 20120627021109.15393.24396.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/client/base.py' --- lava_dispatcher/client/base.py 2012-06-25 19:42:56 +0000 +++ lava_dispatcher/client/base.py 2012-06-26 05:08:49 +0000 @@ -79,6 +79,8 @@ if response is not None: self.match_id = self._connection.expect(response, timeout=timeout) self.match = self._connection.match + if self.match == pexpect.TIMEOUT: + return None # If a non-trivial timeout was specified, it is held to apply to # the whole invocation, so now reduce the time we'll wait for the # shell prompt.