]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests: acpi: do not require IASL for dumping AML blobs
authorIgor Mammedov <imammedo@redhat.com>
Mon, 8 Jul 2019 09:24:09 +0000 (05:24 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 12 Jul 2019 14:56:26 +0000 (10:56 -0400)
IASL isn't needed when dumping ACPI tables from guest for
rebuild purposes. So move this part out from IASL branch.

Makes rebuild-expected-aml.sh work without IASL installed
on host.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20190708092410.11167-2-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/bios-tables-test.c

index d863233fe9a5caf5095a4716756bb813271880b4..13bd166b81a5017e9c511a0c3d0cc9759e85600c 100644 (file)
@@ -597,12 +597,10 @@ static void test_acpi_one(const char *params, test_data *data)
     test_acpi_rxsdt_table(data);
     test_acpi_fadt_table(data);
 
-    if (iasl) {
-        if (getenv(ACPI_REBUILD_EXPECTED_AML)) {
-            dump_aml_files(data, true);
-        } else {
-            test_acpi_asl(data);
-        }
+    if (getenv(ACPI_REBUILD_EXPECTED_AML)) {
+        dump_aml_files(data, true);
+    } else if (iasl) {
+        test_acpi_asl(data);
     }
 
     /*