diff options
author | Thomas Huth | 2020-09-18 17:35:14 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-10-02 15:46:40 +0200 |
commit | 0f3231bfb5a9b83895bad52a0c538818f0a8bd6c (patch) | |
tree | c190580473504ca526e75eaf0ba027e6705bc01f | |
parent | block/sheepdog: Replace magic val by NANOSECONDS_PER_SECOND definition (diff) | |
download | qemu-0f3231bfb5a9b83895bad52a0c538818f0a8bd6c.tar.gz qemu-0f3231bfb5a9b83895bad52a0c538818f0a8bd6c.tar.xz qemu-0f3231bfb5a9b83895bad52a0c538818f0a8bd6c.zip |
tests/check-block: Do not run the iotests with old versions of bash
macOS is shipped with a very old version of the bash (3.2), which
is currently not suitable for running the iotests anymore (e.g.
it is missing support for "readarray" which is used in the file
tests/qemu-iotests/common.filter). 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>
Message-Id: <20200918153514.330705-1-thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rwxr-xr-x | tests/check-block.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/check-block.sh b/tests/check-block.sh index a5a69060e1..f6b1bda7b9 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 LANG=C bash --version | grep -q 'GNU bash, version [123]' ; 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." |