crtm: disable testing if not self.run_tests (#49469)
* crtm: disable testing if not self.run_tests * Update package.py
This commit is contained in:
parent
3676381357
commit
916755e22a
@ -92,10 +92,12 @@ def url_for_version(self, version):
|
|||||||
# https://github.com/JCSDA/spack-stack/issues/1088
|
# https://github.com/JCSDA/spack-stack/issues/1088
|
||||||
patch("v3.1.0-skylabv8.installprefix.patch", when="@v3.1.0-skylabv8")
|
patch("v3.1.0-skylabv8.installprefix.patch", when="@v3.1.0-skylabv8")
|
||||||
|
|
||||||
@when("@2.4.0.1")
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
|
if self.spec.satisfies("@2.4.0.1"):
|
||||||
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
|
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
|
||||||
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
|
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
|
||||||
filter_file(
|
filter_file(
|
||||||
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
|
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
|
||||||
)
|
)
|
||||||
|
if not self.run_tests:
|
||||||
|
filter_file(r"add_subdirectory\(test\)", "# disable testing", "CMakeLists.txt")
|
||||||
|
Loading…
Reference in New Issue
Block a user