diff options
-rwxr-xr-x | tests/qemu-iotests/087 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087 index 27ab6c5..2561a14 100755 --- a/tests/qemu-iotests/087 +++ b/tests/qemu-iotests/087 @@ -102,7 +102,14 @@ echo echo === aio=native without O_DIRECT === echo -run_qemu <<EOF +# Skip this test if AIO is not enabled in this build +function run_qemu_filter_aio() +{ + run_qemu "$@" | \ + sed -e 's/is not supported in this build/it requires cache.direct=on, which was not specified/' +} + +run_qemu_filter_aio <<EOF { "execute": "qmp_capabilities" } { "execute": "blockdev-add", "arguments": { |