From: Eric Blake Date: Tue, 20 Nov 2018 22:52:41 +0000 (-0600) Subject: iotests: Skip 233 if certtool not installed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=155af09d44f584a790118f78448f50f140d0f788;p=qemu.git iotests: Skip 233 if certtool not installed The use of TLS while building qemu is optional. While the 'certtool' binary should be available on every platform that supports building against TLS, that does not imply that the developer has installed it. Make the test gracefully skip in that case. Reported-by: Kevin Wolf Signed-off-by: Eric Blake Reviewed-by: John Snow Reviewed-by: Daniel P. Berrangé Reviewed-by: Wainer dos Santos Moschetta Signed-off-by: Kevin Wolf --- diff --git a/tests/qemu-iotests/common.tls b/tests/qemu-iotests/common.tls index 39f17c1b99..eae81789bb 100644 --- a/tests/qemu-iotests/common.tls +++ b/tests/qemu-iotests/common.tls @@ -31,6 +31,9 @@ tls_x509_cleanup() tls_x509_init() { + (certtool --help) >/dev/null 2>&1 || \ + _notrun "certtool utility not found, skipping test" + mkdir -p "${tls_dir}" # use a fixed key so we don't waste system entropy on