Received: from eggs.gnu.org ([2001:4830:134:3::10]:34427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsnp8-0001if-QT for qemu-devel@nongnu.org; Thu, 23 Aug 2018 07:30:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsnge-0002qB-FN for qemu-devel@nongnu.org; Thu, 23 Aug 2018 07:22:01 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:44834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fsnge-0002pQ-8N for qemu-devel@nongnu.org; Thu, 23 Aug 2018 07:22:00 -0400 From: Peter Maydell Date: Thu, 23 Aug 2018 12:21:53 +0100 Message-Id: <20180823112153.15279-1-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 --- I see this ssh-connection-attempt timeout occasionally in my test builds... tests/vm/basevm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index d7149dea7da..7e58d9e0ca2 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: -- 2.18.0