diff options
Diffstat (limited to 'tests/virtio-blk-test.c')
-rw-r--r-- | tests/virtio-blk-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/virtio-blk-test.c b/tests/virtio-blk-test.c index 06226b8717..571489d763 100644 --- a/tests/virtio-blk-test.c +++ b/tests/virtio-blk-test.c @@ -666,8 +666,9 @@ static void pci_hotplug(void) qs = pci_test_start(); /* plug secondary disk */ - qpci_plug_device_test("virtio-blk-pci", "drv1", PCI_SLOT_HP, - "'drive': 'drive1'"); + qtest_qmp_device_add("virtio-blk-pci", "drv1", + "{'addr': %s, 'drive': 'drive1'}", + stringify(PCI_SLOT_HP)); dev = virtio_blk_pci_init(qs->pcibus, PCI_SLOT_HP); g_assert(dev); |