mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
domaincapstest: Propagate variant name into doTestQemuInternal
Use it to format test file name as in other cases. Currently domaincapstest will not run for any unknown variant. This patch is meant to simplify the review of patches doing actual functional changes. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
2102a31bc2
commit
bc48522cce
@ -246,6 +246,7 @@ static int
|
||||
doTestQemuInternal(const char *version,
|
||||
const char *machine,
|
||||
const char *arch,
|
||||
const char *variant,
|
||||
virDomainVirtType type,
|
||||
void *opaque)
|
||||
{
|
||||
@ -284,8 +285,8 @@ doTestQemuInternal(const char *version,
|
||||
else
|
||||
mach = g_strdup("");
|
||||
|
||||
data.name = name = g_strdup_printf("qemu_%s%s%s.%s",
|
||||
version, typestr, mach, arch);
|
||||
data.name = name = g_strdup_printf("qemu_%s%s%s.%s%s",
|
||||
version, typestr, mach, arch, variant);
|
||||
|
||||
if (STRPREFIX(version, "3.") ||
|
||||
STRPREFIX(version, "4.") ||
|
||||
@ -329,15 +330,15 @@ doTestQemu(const char *inputDir G_GNUC_UNUSED,
|
||||
* - KVM with Q35 machine
|
||||
* - TCG with default machine
|
||||
*/
|
||||
if (doTestQemuInternal(version, NULL, arch,
|
||||
if (doTestQemuInternal(version, NULL, arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
|
||||
if (doTestQemuInternal(version, "q35", arch,
|
||||
if (doTestQemuInternal(version, "q35", arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
|
||||
if (doTestQemuInternal(version, NULL, arch,
|
||||
if (doTestQemuInternal(version, NULL, arch, variant,
|
||||
VIR_DOMAIN_VIRT_QEMU, opaque) < 0)
|
||||
ret = -1;
|
||||
} else if (STREQ(arch, "aarch64")) {
|
||||
@ -346,11 +347,11 @@ doTestQemu(const char *inputDir G_GNUC_UNUSED,
|
||||
* - KVM with default machine
|
||||
* - KVM with virt machine
|
||||
*/
|
||||
if (doTestQemuInternal(version, NULL, arch,
|
||||
if (doTestQemuInternal(version, NULL, arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
|
||||
if (doTestQemuInternal(version, "virt", arch,
|
||||
if (doTestQemuInternal(version, "virt", arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
} else if (STRPREFIX(arch, "riscv")) {
|
||||
@ -359,15 +360,15 @@ doTestQemu(const char *inputDir G_GNUC_UNUSED,
|
||||
* - KVM with virt machine
|
||||
* - TCG with virt machine
|
||||
*/
|
||||
if (doTestQemuInternal(version, "virt", arch,
|
||||
if (doTestQemuInternal(version, "virt", arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
|
||||
if (doTestQemuInternal(version, "virt", arch,
|
||||
if (doTestQemuInternal(version, "virt", arch, variant,
|
||||
VIR_DOMAIN_VIRT_QEMU, opaque) < 0)
|
||||
ret = -1;
|
||||
} else {
|
||||
if (doTestQemuInternal(version, NULL, arch,
|
||||
if (doTestQemuInternal(version, NULL, arch, variant,
|
||||
VIR_DOMAIN_VIRT_KVM, opaque) < 0)
|
||||
ret = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user