vtk-m: Changed test method names and skipping non-applicable tests from old to new approach (#44705)

* vtk-m: Changed test method names and skipping non-applicable tests from old to new approach

-----
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
AcriusWinter 2024-06-18 08:40:17 -07:00 committed by GitHub
parent d911b9c48d
commit e6ae42b1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,14 +230,12 @@ def cmake_args(self):
return options
# Delegate in the vtk-m built smoke test
def smoke_test(self):
def test_smoke_test(self):
"""Build and run ctests"""
spec = self.spec
if "+examples" not in spec:
raise RuntimeError(
"Examples needed for smoke test missing", "reinstall with `+examples` variant"
)
raise SkipTest("Package must be installed with +examples")
testdir = "smoke_test_build"
with working_dir(testdir, create=True):
@ -252,7 +250,4 @@ def smoke_test(self):
@run_after("install")
@on_package_attributes(run_tests=True)
def build_test(self):
self.smoke_test()
def test(self):
self.smoke_test()
self.test_smoke_test()