Skip to content

Commit

Permalink
libvirt_ccw_passthrough: add sleep
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
smitterl committed May 13, 2024
1 parent c5c2171 commit 6404380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libvirt/tests/src/passthrough/ccw/libvirt_ccw_passthrough.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from time import sleep
from uuid import uuid4

from virttest.utils_zchannels import ChannelPaths
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 6404380

Please sign in to comment.