tests/qtest/migration-test: Run the dirty ring tests only with the x86 target
commit1bca64a3f0490861c03ceb849821ebf42c926f82
authorThomas Huth <thuth@redhat.com>
Mon, 1 Aug 2022 11:17:46 +0000 (1 13:17 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 1 Aug 2022 14:30:18 +0000 (1 16:30 +0200)
treeef853e9f80a9b4cdb3f101466a24c8b89b371817
parenta07d9df0fd9d449c0271e2fe358e472bc7efefc2
tests/qtest/migration-test: Run the dirty ring tests only with the x86 target

kvm_dirty_ring_supported() only checks whether the dirty ring support
is available on the x86 host, but it ignores whether the target QEMU
architecture is x86 or not. Thus the test_vcpu_dirty_limit() test
currently fails with the assert((strcmp(arch, "x86_64") == 0)) statement
in dirtylimit_start_vm() if the users run e.g. "make check-qtest-aarch64"
on their x86 host. Fix it by only executing the tests when we're running
with a x86_64 target QEMU binary with KVM.

Message-Id: <20220801114644.208197-1-thuth@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/migration-test.c