iotests: Skip test 162 if there is no SSH support
authorMax Reitz <mreitz@redhat.com>
Wed, 12 Oct 2016 20:49:07 +0000 (22:49 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 11 Nov 2016 14:56:22 +0000 (15:56 +0100)
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>
tests/qemu-iotests/162

index f8eecb3..cad2bd7 100755 (executable)
@@ -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