]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuhotplugtest: Call qemuDomainAttachDeviceLive() directly
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Apr 2023 15:16:46 +0000 (17:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 06:46:27 +0000 (08:46 +0200)
commitf7b8f740ca9391bb5403bbd0865570925706fa86
tree7f26cf8b15f0efffdc1472922e75f3729cf39762
parent2577ade4576a14d52eda491a2c82f7ce15efa7a1
qemuhotplugtest: Call qemuDomainAttachDeviceLive() directly

There's no reason for qemuhotplugtest to reimplement which device
attach function to call (testQemuHotplugAttach()) when
qemuDomainAttachDeviceLive() already does that. Thus, drop
testQemuHotplugAttach() and call qemuDomainAttachDeviceLive()
directly.

There's one small catch though, qemuDomainAttachDeviceLive() now
calls one monitor command more (to list all aliases). We don't
care really, because we're not testing that. Therefore, just
provide a dummy reply.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
tests/qemuhotplugtest.c