tests/qtest/test-x86-cpuid-compat: Check for machines before using them
commit7539fa0116c8f84e56eace198c42a938ab4c3f8e
authorThomas Huth <thuth@redhat.com>
Wed, 22 Dec 2021 15:39:23 +0000 (22 16:39 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 5 Jan 2022 10:10:03 +0000 (5 11:10 +0100)
treede42614b8e335f6e29a8319ad3244e736e798272
parent01854af2cfee62028693f45f1f23107b916974b1
tests/qtest/test-x86-cpuid-compat: Check for machines before using them

The user might have disabled the pc-i440fx machine type (or it's older
versions, like done in downstream RHEL) in the QEMU binary, so let's
better check whether the machine types are available before using them.

Message-Id: <20211222153923.1000420-1-thuth@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/test-x86-cpuid-compat.c