mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
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 <kwolf@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
fa1cfb4026
commit
155af09d44
@ -31,6 +31,9 @@ tls_x509_cleanup()
|
|||||||
|
|
||||||
tls_x509_init()
|
tls_x509_init()
|
||||||
{
|
{
|
||||||
|
(certtool --help) >/dev/null 2>&1 || \
|
||||||
|
_notrun "certtool utility not found, skipping test"
|
||||||
|
|
||||||
mkdir -p "${tls_dir}"
|
mkdir -p "${tls_dir}"
|
||||||
|
|
||||||
# use a fixed key so we don't waste system entropy on
|
# use a fixed key so we don't waste system entropy on
|
||||||
|
Loading…
Reference in New Issue
Block a user