From: Michael Tokarev Date: Tue, 5 Aug 2025 18:17:30 +0000 (+0300) Subject: tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported X-Git-Tag: v10.1.0-rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afeb002e0ad49dcf388dedbc6995f6561885e376;p=thirdparty%2Fqemu.git tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported This test uses cache.direct=true, but does not check if O_DIRECT is supported by the underlying filesystem, and fails, for example, on a tmpfs (which is rather common on various auto-builders, in CI, etc). Fix this by using `_supported_cache_modes none directsync`. Fixes: c0ddcb2cbc146e "tests: Add iotest mirror-sparse for recent patches" Signed-off-by: Michael Tokarev Reviewed-by: Stefan Hajnoczi Message-ID: <20250805181731.282677-1-mjt@tls.msk.ru> Signed-off-by: Stefan Hajnoczi --- diff --git a/tests/qemu-iotests/tests/mirror-sparse b/tests/qemu-iotests/tests/mirror-sparse index cfcaa600ab..3b183eea88 100755 --- a/tests/qemu-iotests/tests/mirror-sparse +++ b/tests/qemu-iotests/tests/mirror-sparse @@ -40,6 +40,7 @@ cd .. _supported_fmt qcow2 raw # Format of the source. dst is always raw file _supported_proto file _supported_os Linux +_supported_cache_modes none directsync _require_disk_usage echo