diff options
author | Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com> | 2021-10-29 15:04:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 07:04:40 -0600 |
commit | fd10e544097b058a81ee89e0d8b93cecd13a4786 (patch) | |
tree | 04d1afb3e56d2b3b8b469f1305d7d24625b6e2f8 /var | |
parent | 49034abd769af00ed85ca6583b83f1f36e42ce11 (diff) | |
download | spack-fd10e544097b058a81ee89e0d8b93cecd13a4786.tar.gz spack-fd10e544097b058a81ee89e0d8b93cecd13a4786.tar.bz2 spack-fd10e544097b058a81ee89e0d8b93cecd13a4786.tar.xz spack-fd10e544097b058a81ee89e0d8b93cecd13a4786.zip |
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>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libssh2/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libssh2/package.py b/var/spack/repos/builtin/packages/libssh2/package.py index 7b9beb7b14..933a996b03 100644 --- a/var/spack/repos/builtin/packages/libssh2/package.py +++ b/var/spack/repos/builtin/packages/libssh2/package.py @@ -32,3 +32,8 @@ class Libssh2(CMakePackage): # 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') |