aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/162
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2016-10-12 22:49:07 +0200
committerMax Reitz <mreitz@redhat.com>2016-11-11 15:56:22 +0100
commiteaed090735ac0dbcaad6d39074da6607f2f81b8a (patch)
tree4dcbaa83e510287a03a082beeab626253e18ce9a /tests/qemu-iotests/162
parenteb0df69f50bd64454bcb9457e875cd52f00dced8 (diff)
iotests: Skip test 162 if there is no SSH support
Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20161012204907.25941-4-mreitz@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/162')
-rwxr-xr-xtests/qemu-iotests/1623
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162
index f8eecb325b..cad2bd70ab 100755
--- a/tests/qemu-iotests/162
+++ b/tests/qemu-iotests/162
@@ -35,6 +35,9 @@ status=1 # failure is the default!
_supported_fmt generic
_supported_os Linux
+test_ssh=$($QEMU_IMG --help | grep '^Supported formats:.* ssh\( \|$\)')
+[ "$test_ssh" = "" ] && _notrun "ssh support required"
+
echo
echo '=== NBD ==='
# NBD expects all of its arguments to be strings