diff --git a/qemu/tests/virtio_console.py b/qemu/tests/virtio_console.py index 25b2bae953c37dfe26e05bc6a554eb6181bfca4c..914cd8533e19d5b8a9083e5fdbf7d6efd2ac7b70 100644 --- a/qemu/tests/virtio_console.py +++ b/qemu/tests/virtio_console.py @@ -299,10 +299,15 @@ def run_virtio_console(test, params, env): @error.context_aware def test_sigio(): """ - Test whether port use generates sigio signals correctly. + Test whether virtio port generates sigio signals correctly. @param cfg: virtio_console_params - which type of virtio port to test @param cfg: virtio_port_spread - how many devices per virt pci (0=all) """ + # When the GW is already running and the thread only connects, + # every signal destroys the daemon. Fresh start solves the problem. + error.context("Reloading the GuestWorker before sigio test.", + logging.info) + test_delete_guest_script() (vm, guest_worker, port) = get_vm_with_single_port( params.get('virtio_console_params')) if port.is_open():