diff options
author | AcriusWinter <152348900+AcriusWinter@users.noreply.github.com> | 2024-08-12 18:29:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 19:29:25 -0600 |
commit | 6b73f00310db34c054878c51d8ccf5092bc2e607 (patch) | |
tree | 2394bcd989a6d1ee0229b5a387c78e315e497f8e | |
parent | 063b987cebdcd1d8aea5f0f671c37087276c1cf0 (diff) | |
download | spack-6b73f00310db34c054878c51d8ccf5092bc2e607.tar.gz spack-6b73f00310db34c054878c51d8ccf5092bc2e607.tar.bz2 spack-6b73f00310db34c054878c51d8ccf5092bc2e607.tar.xz spack-6b73f00310db34c054878c51d8ccf5092bc2e607.zip |
migraphx: Old to new test API (#44988)
* migraphx: Old to new test API
* migraphx: tweak name and docstring to be more descriptive
---------
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/migraphx/package.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/migraphx/package.py b/var/spack/repos/builtin/packages/migraphx/package.py index cc18ab89e5..03a266d1e8 100644 --- a/var/spack/repos/builtin/packages/migraphx/package.py +++ b/var/spack/repos/builtin/packages/migraphx/package.py @@ -136,10 +136,10 @@ class Migraphx(CMakePackage): ) return args - def test(self): + def test_unit_tests(self): + """Run installed UnitTests""" if self.spec.satisfies("@:5.5.0"): - print("Skipping: stand-alone tests") - return - test_dir = join_path(self.spec["migraphx"].prefix, "bin") - with working_dir(test_dir, create=True): - self.run_test("UnitTests") + raise SkipTest("Package must be installed as version @5.5.1 or later") + unit_tests = which(self.prefix.bin.UnitTests) + assert unit_tests is not None, "UnitTests is not installed!" + unit_tests() |