[Qemu-devel] [RFC PATCH 5/5] tests/vm: When using TCG, wait longer for a VM to start

Philippe Mathieu-Daudé posted 5 patches 7 years, 3 months ago
There is a newer version of this series
[Qemu-devel] [RFC PATCH 5/5] tests/vm: When using TCG, wait longer for a VM to start
Posted by Philippe Mathieu-Daudé 7 years, 3 months ago
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
4 is random (but more than 1).
---
 tests/vm/basevm.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 7575c36f0b..50785a64df 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -182,6 +182,8 @@ class BaseVM(object):
                             usernet_info)
 
     def wait_ssh(self, seconds=120):
+        if not kvm_available():
+            seconds *= 4
         starttime = datetime.datetime.now()
         endtime = starttime + datetime.timedelta(seconds=seconds)
         guest_up = False
-- 
2.18.0