提交 49bf09d1 编写于 作者: P Pavel Hrdina

qemucaps2xmltest: fix test to successfully run without kvm support

Function virQEMUCapsInitGuestFromBinary detect kvm support by testing
whether /dev/kvm exists or whether we pass path to kvmbin.  Provide the
path we are testing via kvmbin for testing purpose instead of detecting
presence of /dev/kvm to successfully run the tests on all hosts.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 726072f0
......@@ -118,8 +118,8 @@ testGetCaps(char *capsData, const testQemuData *data)
if (virQEMUCapsInitGuestFromBinary(caps,
"/usr/bin/qemu-system-i386",
qemuCaps,
NULL,
NULL,
"/usr/bin/qemu-system-i386",
qemuCaps,
data->guestarch) < 0) {
fprintf(stderr, "failed to create the capabilities from qemu");
goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册