[PATCH] qemuxml2xmltest: Set dummy non-hypervisor drivers
Daniel P. Berrangé
berrange at redhat.com
Thu Jun 25 14:51:34 UTC 2020
On Thu, Jun 25, 2020 at 04:37:59PM +0200, Michal Privoznik wrote:
> When parsing domain XML post parse callbacks are run and one of
> them might try and call API from a non-hypervisor driver (e.g.
> just like qemuDomainDeviceNetDefPostParse() is doing - it calls a
> network API). To avoid this in the test suite, set dummy drivers,
> which renders all non-hypervisor APIs return error.
>
> This mimics what qemuxml2argvtest does.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> tests/qemuxml2xmltest.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list