]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Clean up host CPU if overriden
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Sep 2023 13:41:10 +0000 (15:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 6 Sep 2023 12:09:42 +0000 (14:09 +0200)
commite8cd18a8e8355ebfdcf4d098ec449798f28462a1
treea11dfd63df436d45a9eacf8ae28205e9b7a91a84
parent748dc3b1d3542de2b084844133f23b3e4e2bc408
qemuxml2argvtest: Clean up host CPU if overriden

If a test uses ARG_CAPS_HOST_CPU_MODEL feature we override the global
host cpu model to the selected CPU but don't clear it afterwards. This
can trip up fake caps tests following a test which uses this feature.

This does not happen with real caps, because unless overriden, the host
cpu from capabilities is always populated as the host cpu.

Clear the CPU on cleanup.

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