Skip to content
Snippets Groups Projects
Commit c0012e9a authored by Hanna Reitz's avatar Hanna Reitz
Browse files

iotests: Make 087 pass without AIO enabled


If AIO has not been enabled in the qemu build that is to be tested, we
should skip the "aio=native without O_DIRECT" test instead of failing.

Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Message-id: 20171115180732.31753-1-mreitz@redhat.com
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 5e003f17
No related branches found
No related tags found
No related merge requests found
......@@ -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": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment