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>
This commit is contained in:
Patrick Bridges 2023-08-15 19:03:14 -06:00 committed by GitHub
parent 9bb5cffc73
commit b6ae751657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 <prefix>/share/heffte/testing
cmake_dir = self.test_suite.current_test_cache_dir.testing