libssh2: skip the testsuite when docker is not installed (#26962)

The build-time testsuite which would be run when building
with tests needs docker. Check that it exists before
attempting to execute the tests.

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Bernhard Kaindl 2021-10-29 15:04:40 +02:00 committed by GitHub
parent 49034abd76
commit fd10e54409
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,3 +32,8 @@ def darwin_fix(self):
# The shared library is not installed correctly on Darwin; fix this
if self.spec.satisfies('platform=darwin'):
fix_darwin_install_name(self.prefix.lib)
def check(self):
# Docker is required to run tests
if which('docker'):
make('test')