On Fri, Apr 21, 2023 at 10:25 AM Michal Privoznik <mprivozn(a)redhat.com>
wrote:
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(a)redhat.com>
---
tests/qemuhotplugtest.c | 68 +++++------------------------------------
1 file changed, 7 insertions(+), 61 deletions(-)
Reviewed-by: Kristina Hanicova <khanicov(a)redhat.com>
Kristina