]> xenbits.xensource.com Git - libvirt.git/commit
tests: qemuhotplug: Use DEVICE_DELETED event in all hotunplug tests
authorPeter Krempa <pkrempa@redhat.com>
Thu, 7 Feb 2019 10:55:12 +0000 (11:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Feb 2019 09:11:20 +0000 (10:11 +0100)
commiteaaecd9f5541ca6f9bab372d73fbe1261f98e76b
treefac5054795db2c92d192ee07beaf75f07717c11d
parente29ae70ba75592f2062a2ae348854c4520f7c9b2
tests: qemuhotplug: Use DEVICE_DELETED event in all hotunplug tests

Currently all supported qemu versions now have support for the
DEVICE_DELETED event. This means that testing the old approach is a
waste of time.

Always add the QEMU_CAPS_DEVICE_DEL_EVENT capability in the hotplug test
and fix existing test cases.

The 'disk-virtio', 'disk-usb', 'disk-scsi', and 'disk-scsi-2' already
had variants that used the event, so the non-event variants will be
removed.

For all other cases the QMP_DEVICE_DELETED macro is used to add the
correct reply.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/qemuhotplugtest.c