From 64043805ff65a96b74947be42fd4eae3b14daa12 Mon Sep 17 00:00:00 2001 From: Sebastian Mitterle Date: Mon, 13 May 2024 07:31:32 -0400 Subject: [PATCH] libvirt_ccw_passthrough: add sleep The test fails sometimes in CI when trying to start the VM. The mediated device doesn't seem to be present yet. I can't reproduce this but adding sleep of 2 secs to confirm in future runs that it's really about timing. Signed-off-by: Sebastian Mitterle --- libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py b/libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py index 758632e5c3..9d24f609eb 100644 --- a/libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py +++ b/libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py @@ -1,3 +1,4 @@ +from time import sleep from uuid import uuid4 from virttest.utils_zchannels import ChannelPaths @@ -56,6 +57,7 @@ def run(test, params, env): ccw.set_override(schid) ccw.start_device(uuid, schid) + sleep(2) vm.start() session = vm.wait_for_login()