]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: do not mangle real qemu caps in xml2argvtest
authorJán Tomko <jtomko@redhat.com>
Sat, 8 Sep 2018 22:13:23 +0000 (00:13 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 12 Sep 2018 19:12:22 +0000 (21:12 +0200)
commitc9e5be4e9c4aed2c0e601755f1cf8ec3d4fb36dd
treeea48e85e1ad3d0a984e79f08a0b3db93b2a9e3c2
parent3fb2c456ba9a4cce913927cdd357aff196e48ad4
tests: do not mangle real qemu caps in xml2argvtest

None of the things testUpdateQEMUCaps adjusts are applicable
for tests that use the DO_TEST_CAPS macros, i.e.
real QEMU capabilities parsed from the XML files:

The architecture must be chosen before we even open the caps
file, CPU models are already present and the expensive HostModel
computation was already done in virQEMUCapsLoadCache.

Introduce FLAG_REAL_CAPS and skip the whole testUpdateQEMUCaps
function for DO_TEST_CAPS.

This speeds up the test by 25 %

Signed-off-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvtest.c