tests/qtest/migration: Add a check for the availability of the "pc" machine
authorThomas Huth <thuth@redhat.com>
Tue, 3 Sep 2024 11:47:26 +0000 (13:47 +0200)
committerFabiano Rosas <farosas@suse.de>
Tue, 3 Sep 2024 19:24:37 +0000 (16:24 -0300)
commitd41c9896f49076d1eaaa32214bd2296bd36d866c
treeb4f6d1ff863ddddcccde8399703e1a980388b11a
parent203beb6f047467a4abfc8267c234393cea3f471c
tests/qtest/migration: Add a check for the availability of the "pc" machine

The test_vcpu_dirty_limit is the only test that does not check for the
availability of the machine before starting the test, so it fails when
QEMU has been configured with --without-default-devices. Add a check for
the "pc" machine type to fix it.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/migration-test.c