Skip to content

Commit

Permalink
migraphx: Old to new test API (spack#44988)
Browse files Browse the repository at this point in the history
* migraphx: Old to new test API
* migraphx: tweak name and docstring to be more descriptive

---------

Co-authored-by: Tamara Dahlgren <[email protected]>
  • Loading branch information
AcriusWinter and tldahlgren authored Aug 13, 2024
1 parent 063b987 commit 6b73f00
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions var/spack/repos/builtin/packages/migraphx/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ def cmake_args(self):
)
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()

0 comments on commit 6b73f00

Please sign in to comment.