iotests/149: Skip on unsupported ciphers
authorHanna Reitz <hreitz@redhat.com>
Wed, 17 Nov 2021 15:17:07 +0000 (16:17 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 23 Nov 2021 14:39:12 +0000 (15:39 +0100)
commit4dd218fd0717ed3cddb69c01eeb9da630107d89d
treedd12863efcb584c71283285bf318c14968c80f51
parentcb5a24d7f692ad129f019f3b670531eccfe14415
iotests/149: Skip on unsupported ciphers

Whenever qemu-img or qemu-io report that some cipher is unsupported,
skip the whole test, because that is probably because qemu has been
configured with the gnutls crypto backend.

We could taylor the algorithm list to what gnutls supports, but this is
a test that is run rather rarely anyway (because it requires
password-less sudo), and so it seems better and easier to skip it.  When
this test is intentionally run to check LUKS compatibility, it seems
better not to limit the algorithms but keep the list extensive.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20211117151707.52549-3-hreitz@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemu-iotests/149