]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvmock: Pretend FW blobs are always present
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 31 Jul 2025 09:19:43 +0000 (11:19 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Aug 2025 09:53:19 +0000 (11:53 +0200)
commit12c35ab1614d1adbb232076318016b440e0ba74a
tree67b9832231e532e0fe86ad1bd5f0ac40a4ae313d
parent1686db62ed554801d08772917409b7520e17af3c
qemuxml2argvmock: Pretend FW blobs are always present

Soon, the QEMU driver, specifically the part that picks firmware
based on firmware descriptor files (qemu_firmware.c) is going to
check for the presence of those firmware blobs (well, for their
realpath()). Just collect the list of all blobs we use in our
tests and mock virFileCanonicalizePath() so that for any path on
that list its strdup()-ed version is returned.

This means, qemuxmlconftest won't touch host files really.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvmock.c