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:
parent
9bb5cffc73
commit
b6ae751657
1 changed files with 6 additions and 0 deletions
|
@ -128,12 +128,18 @@ def cmake_args(self):
|
||||||
|
|
||||||
@run_after("install")
|
@run_after("install")
|
||||||
def setup_smoke_test(self):
|
def setup_smoke_test(self):
|
||||||
|
if self.spec.satisfies("@:2.2.0"):
|
||||||
|
return
|
||||||
install_tree(
|
install_tree(
|
||||||
self.prefix.share.heffte.testing, join_path(self.install_test_root, "testing")
|
self.prefix.share.heffte.testing, join_path(self.install_test_root, "testing")
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_make_test(self):
|
def test_make_test(self):
|
||||||
"""build and run make(test)"""
|
"""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
|
# using the tests copied from <prefix>/share/heffte/testing
|
||||||
cmake_dir = self.test_suite.current_test_cache_dir.testing
|
cmake_dir = self.test_suite.current_test_cache_dir.testing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue