iotests: Skip 233 if certtool not installed
PATCH 1/1 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.
---
On Fedora, libvirt requires libtls-utils to be present, but not qemu.
I'm fine if Kevin wants to pick this up in a pull request related to iotests in general; if not, I'll do a pull request through my NBD tree in time for -rc3.
tests/qemu-iotests/common.tls | 3 +++ 1 file changed, 3 insertions(+)
tests/qemu-iotests/common.tls +3 -0
@@ -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
Signature · 1 line
2.17.2
Quoted 11 lines · Eric Blake
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 <[email protected]>Signed-off-by Eric Blake <[email protected]>---
On Fedora, libvirt requires libtls-utils to be present, but not qemu.
Sorry for the typo; certtool is part of gnutls-utils
Quoted 4 lines
I'm fine if Kevin wants to pick this up in a pull request related to iotests in general; if not, I'll do a pull request through my NBD tree in time for -rc3.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 8 lines · Eric Blake
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 <[email protected]>Signed-off-by Eric Blake <[email protected]>
Quoted 16 lines
---
On Fedora, libvirt requires libtls-utils to be present, but not qemu.
I'm fine if Kevin wants to pick this up in a pull request related to iotests in general; if not, I'll do a pull request through my NBD tree in time for -rc3.
tests/qemu-iotests/common.tls | 3 +++ 1 file changed, 3 insertions(+)tests/qemu-iotests/common.tls +0
-0
tests/qemu-iotests/common.tls tls_x509_cleanup() · line 36
Quoted 6 lines
tests/qemu-iotests/common.tls +3
-0@@ -31,6 +31,9 @@ tls_x509_cleanup() tls_x509_init() { + (certtool --help) >/dev/null 2>&1 || \ + _notrun "certtool utility not found, skipping test" +
Or something wickedly foul has happened :)
Quoted 4 lines
tests/qemu-iotests/common.tls +0
-0mkdir -p "${tls_dir}" # use a fixed key so we don't waste system entropy on
Kevin Wolf
AppliedAm 20.11.2018 um 23:52 hat Eric Blake geschrieben:
Quoted 8 lines
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 <[email protected]>Signed-off-by Eric Blake <[email protected]>
Thanks, applied to the block branch.
Kevin
Quoted 10 lines · Eric Blake
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 <[email protected]>Signed-off-by Eric Blake <[email protected]>---
Quoted 8 lines
On Fedora, libvirt requires libtls-utils to be present, but not qemu.
I'm fine if Kevin wants to pick this up in a pull request related to iotests in general; if not, I'll do a pull request through my NBD tree in time for -rc3.
tests/qemu-iotests/common.tls | 3 +++ 1 file changed, 3 insertions(+)
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 8 lines · Eric Blake
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 <[email protected]>Signed-off-by Eric Blake <[email protected]>
Quoted 25 lines
---
On Fedora, libvirt requires libtls-utils to be present, but not qemu.
I'm fine if Kevin wants to pick this up in a pull request related to iotests in general; if not, I'll do a pull request through my NBD tree in time for -rc3.
tests/qemu-iotests/common.tls | 3 +++ 1 file changed, 3 insertions(+)tests/qemu-iotests/common.tls +3
-0@@ -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