diff options
author | AcriusWinter <152348900+AcriusWinter@users.noreply.github.com> | 2024-06-18 08:40:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 09:40:17 -0600 |
commit | e6ae42b1eb44b35a4b864128cfcf91d6c4226b40 (patch) | |
tree | 7674fb693cf3627811f88405c56d144aa752823f | |
parent | d911b9c48d96d26ba1dce933bc6d1d5dc6309a4b (diff) | |
download | spack-e6ae42b1eb44b35a4b864128cfcf91d6c4226b40.tar.gz spack-e6ae42b1eb44b35a4b864128cfcf91d6c4226b40.tar.bz2 spack-e6ae42b1eb44b35a4b864128cfcf91d6c4226b40.tar.xz spack-e6ae42b1eb44b35a4b864128cfcf91d6c4226b40.zip |
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>
-rw-r--r-- | var/spack/repos/builtin/packages/vtk-m/package.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/vtk-m/package.py b/var/spack/repos/builtin/packages/vtk-m/package.py index 2f5c868374..90eadd0edf 100644 --- a/var/spack/repos/builtin/packages/vtk-m/package.py +++ b/var/spack/repos/builtin/packages/vtk-m/package.py @@ -230,14 +230,12 @@ class VtkM(CMakePackage, CudaPackage, ROCmPackage): 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 @@ class VtkM(CMakePackage, CudaPackage, ROCmPackage): @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() |