aboutsummaryrefslogtreecommitdiff
path: root/tests/vm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-08-23 12:21:53 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-08-24 11:31:28 +0100
commit6b699ae1be9f257478d5eca7ef65dcea270a2796 (patch)
tree4a9520307c4d6f6c395c14b3f38caafe12f9267a /tests/vm
parent3c825bb7c1b4289ef05f51b5b77ac0967b6a27fa (diff)
downloadqemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.zip
qemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.tar.gz
qemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.tar.bz2
tests/vm: Increase timeout waiting for VM to boot to 5 minutes
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
Diffstat (limited to 'tests/vm')
-rwxr-xr-xtests/vm/basevm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index d7149de..7e58d9e 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -176,7 +176,7 @@ class BaseVM(object):
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: