[Libguestfs] [libnbd PATCH v2 04/23] interop: Do not test against broken qemu-storage-daemon
Martin Kletzander
mkletzan at redhat.com
Thu Jun 10 23:12:08 UTC 2021
The version 6.0.0 has very often a bug that makes the test fail, but which
should be fixed in later versions. Version 5.1.0 has an issue as well. The
version check is not the nicest way to check for this, but is enough.
Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
interop/interop-qemu-storage-daemon.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/interop/interop-qemu-storage-daemon.sh b/interop/interop-qemu-storage-daemon.sh
index 09d1898ef459..16aafab9e65a 100755
--- a/interop/interop-qemu-storage-daemon.sh
+++ b/interop/interop-qemu-storage-daemon.sh
@@ -23,7 +23,11 @@ set -e
set -x
requires test "x$QEMU_STORAGE_DAEMON" != "x"
-requires $QEMU_STORAGE_DAEMON --version
+requires sed --version
+qsd_version="$($QEMU_STORAGE_DAEMON --version | \
+ sed -n '1s/qemu-storage-daemon version \([0-9.]*\).*/\1/p')"
+requires_not test "$qsd_version" = "6.0.0"
+requires_not test "$qsd_version" = "5.1.0"
requires nbdsh --version
requires qemu-img --version
--
2.32.0
More information about the Libguestfs
mailing list