[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] iotests: Make 087 pass without AIO enabled

From: Max Reitz
Subject: [Qemu-devel] [PATCH] iotests: Make 087 pass without AIO enabled
Date: Wed, 15 Nov 2017 19:07:32 +0100

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: Max Reitz <address@hidden>
Cleber wanted to fix this in July with his "build configuration query
tool and conditional (qemu-io)test skip" series
but unfortunately there hasn't been any activity on that (as far as I
can see), so let's just solve it the simple way.
 tests/qemu-iotests/087 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087
index 27ab6c5151..2561a14456 100755
--- a/tests/qemu-iotests/087
+++ b/tests/qemu-iotests/087
@@ -102,7 +102,14 @@ echo
 echo === aio=native without O_DIRECT ===
-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": {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]