summaryrefslogtreecommitdiffstats
path: root/tests/vm/basevm.py
diff options
context:
space:
mode:
authorPeter Maydell2018-08-23 13:21:53 +0200
committerPeter Maydell2018-08-24 12:31:28 +0200
commit6b699ae1be9f257478d5eca7ef65dcea270a2796 (patch)
tree4a9520307c4d6f6c395c14b3f38caafe12f9267a /tests/vm/basevm.py
parentMerge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff)
downloadqemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.tar.gz
qemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.tar.xz
qemu-6b699ae1be9f257478d5eca7ef65dcea270a2796.zip
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/basevm.py')
-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 d7149dea7d..7e58d9e0ca 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: