]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2xmltest: Redirect access to FW descriptor dirs
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 12 Aug 2019 15:06:22 +0000 (12:06 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 13 Aug 2019 07:48:39 +0000 (09:48 +0200)
commit92832577d1ef29d26d42bcbf978be0e845a31365
tree7c71b99f50bce836a5def1f9facf336ce404b332
parenta60ee914009aa7f1a27fc0563337ded08b09247f
qemuxml2xmltest: Redirect access to FW descriptor dirs

If /etc/qemu/firmware directory exists, but is not readable then
qemuxml2xmltest fails. This is because once domain XML is parsed
it is validated. For that domain capabilities are needed.
However, when constructing domain capabilities, FW descriptors
are loaded and this is the point where the test fails, because it
fails to open one of the directories.

Fixes: 5b9819eedc domain capabilities: Expose firmware auto selection feature
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am
tests/qemuxml2xmltest.c