All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/check-block: Do not run the iotests with old versions of bash
@ 2020-09-12 12:14 Thomas Huth
  2020-09-14  9:19 ` Max Reitz
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Thomas Huth @ 2020-09-12 12:14 UTC (permalink / raw)
  To: qemu-devel, Max Reitz; +Cc: Daniel P . Berrangé, qemu-block

macOS is shipped with a very old version of the bash (3.2), which
is currently not suitable for running the iotests anymore. Add
a check to skip the iotests in this case - if someone still wants
to run the iotests on macOS, they can install a newer version from
homebrew, for example.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/check-block.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/check-block.sh b/tests/check-block.sh
index 8e29c868e5..bfe1630c1e 100755
--- a/tests/check-block.sh
+++ b/tests/check-block.sh
@@ -46,6 +46,11 @@ if ! command -v bash >/dev/null 2>&1 ; then
     exit 0
 fi
 
+if bash --version | grep 'GNU bash, version [123]' > /dev/null 2>&1 ; then
+    echo "bash version too old ==> Not running the qemu-iotests."
+    exit 0
+fi
+
 if ! (sed --version | grep 'GNU sed') > /dev/null 2>&1 ; then
     if ! command -v gsed >/dev/null 2>&1; then
         echo "GNU sed not available ==> Not running the qemu-iotests."
-- 
2.18.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-14 17:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 12:14 [PATCH] tests/check-block: Do not run the iotests with old versions of bash Thomas Huth
2020-09-14  9:19 ` Max Reitz
2020-09-14 10:50   ` Thomas Huth
2020-09-14 11:13     ` Max Reitz
2020-09-14 11:21       ` Thomas Huth
2020-09-14  9:36 ` 罗勇刚(Yonggang Luo)
2020-09-14 10:45   ` Thomas Huth
2020-09-14 15:03 ` Eric Blake
2020-09-14 15:33   ` Thomas Huth
2020-09-14 16:01     ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.