tests/vm: Increase timeout waiting for VM to boot to 5 minutes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Aug 2018 11:21:53 +0000 (12:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 10:31:28 +0000 (11:31 +0100)
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

tests/vm/basevm.py

index d7149dea7dae11c17c43baa75465da296a3cf439..7e58d9e0ca27b6fee460b11fe0919277f63d95ac 100755 (executable)
@@ -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: