]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests: Add suffix 'tpm2' or 'tpm12' to ACPI table files
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 2 Aug 2021 21:52:40 +0000 (17:52 -0400)
committerStefan Berger <stefanb@linux.ibm.com>
Tue, 31 Aug 2021 21:33:12 +0000 (17:33 -0400)
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20210802215246.1433175-5-stefanb@linux.ibm.com

tests/qtest/bios-tables-test.c

index 93c9d306b523b83c8f4a4c4fc249487f3a7b65d3..4ccbe5615870733befcc0a33987743ef9913a008 100644 (file)
@@ -1101,7 +1101,8 @@ static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if,
     TPMTestState test;
     test_data data;
     GThread *thread;
-    char *args, *variant = g_strdup_printf(".%s", tpm_if);
+    const char *suffix = tpm_version == TPM_VERSION_2_0 ? "tpm2" : "tpm12";
+    char *args, *variant = g_strdup_printf(".%s.%s", tpm_if, suffix);
 
     tpm_tis_base_addr = base;