Skip to content

Commit

Permalink
tests/vm: Increase timeout waiting for VM to boot to 5 minutes
Browse files Browse the repository at this point in the history
The VM tests currently have a timeout of 2 minutes for trying
to connect to ssh. Since the guest VM has to boot from cold
to the point of accepting inbound ssh during this time, if the
host machine is heavily loaded it can spuriously time out.
Increase the timeout from 2 to 5 minutes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Fam Zheng <famz@redhat.com>
Message-id: 20180823112153.15279-1-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Aug 24, 2018
1 parent 3c825bb commit 6b699ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vm/basevm.py
Expand Up @@ -176,7 +176,7 @@ def boot(self, img, extra_args=[]):
raise Exception("Cannot find ssh port from 'info usernet':\n%s" % \
usernet_info)

def wait_ssh(self, seconds=120):
def wait_ssh(self, seconds=300):
starttime = datetime.datetime.now()
guest_up = False
while (datetime.datetime.now() - starttime).total_seconds() < seconds:
Expand Down

0 comments on commit 6b699ae

Please sign in to comment.