From b6ae7516578701aa4fe38bb3c09ca7d1b5fd3d92 Mon Sep 17 00:00:00 2001 From: Patrick Bridges Date: Tue, 15 Aug 2023 19:03:14 -0600 Subject: [PATCH] Fixed HeFFTe package spec to not do the smoke test prior to 2.2.0 (#39435) * Fixed HeFFTe package spec to not do the smoke test prior to 2.2.0, where it breaks * Convert test return to 'raise SkipTest' --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --- var/spack/repos/builtin/packages/heffte/package.py | 6 ++++++ 1 file changed, 6 insertions(+) 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