domaincapstest: Drop support for old qemu

The aim of domaincapstest is to check domain capabilities XML
with respect to qemu capabilities. And we used to have old qemu
capabilities where only TPM-1.2 was supported. But as of
v12.4.0-rc1~130 QEMU-7.2 or newer is required which means the
code that's handling older QEMUs is required no more. Drop it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik committed 2026-06-09 14:10:53 +02:00
1 parent f0c89a8aa9
commit d5301e593a
1 file changed
+1 -9
+1 -9
View File
@@ -298,15 +298,7 @@ doTestQemuInternal(const char *version,
version, typestr, mach, arch, variant,
flag);
if (STRPREFIX(version, "3.") ||
STRPREFIX(version, "4.") ||
STRPREFIX(version, "5.")) {
g_setenv(TEST_TPM_ENV_VAR, TPM_VER_1_2, true);
} else if (STRPREFIX(version, "6.")) {
g_setenv(TEST_TPM_ENV_VAR, TPM_VER_1_2 TPM_VER_2_0, true);
} else {
g_setenv(TEST_TPM_ENV_VAR, TPM_VER_2_0, true);
}
g_setenv(TEST_TPM_ENV_VAR, TPM_VER_2_0, true);
rc = virTestRun(name, test_virDomainCapsFormat, &data);