diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py index 0a502588fd..a9908bb2de 100644 --- a/var/spack/repos/builtin/packages/heffte/package.py +++ b/var/spack/repos/builtin/packages/heffte/package.py @@ -128,12 +128,18 @@ def cmake_args(self): @run_after("install") def setup_smoke_test(self): + if self.spec.satisfies("@:2.2.0"): + return install_tree( self.prefix.share.heffte.testing, join_path(self.install_test_root, "testing") ) def test_make_test(self): """build and run make(test)""" + + if self.spec.satisfies("@:2.2.0"): + raise SkipTest("Test is not supported for versions @:2.2.0") + # using the tests copied from /share/heffte/testing cmake_dir = self.test_suite.current_test_cache_dir.testing