Skip to content

Commit cbff2ae

Browse files
Merge pull request #527 from AlexanderRichert-NOAA/crtm_notest_mar25
crtm: disable testing if not self.run_tests (spack#49469)
2 parents 16e2e57 + 118691e commit cbff2ae

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

var/spack/repos/builtin/packages/crtm/package.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ def url_for_version(self, version):
9494
# https://github.com/JCSDA/spack-stack/issues/1088
9595
patch("v3.1.0-skylabv8.installprefix.patch", when="@v3.1.0-skylabv8")
9696

97-
@when("@2.4.0.1")
9897
def patch(self):
99-
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
100-
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
101-
filter_file(
102-
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
103-
)
98+
if self.spec.satisfies("@2.4.0.1"):
99+
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
100+
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
101+
filter_file(
102+
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
103+
)
104+
if not self.run_tests:
105+
filter_file(r"add_subdirectory\(test\)", "# disable testing", "CMakeLists.txt")

0 commit comments

Comments
 (0)