From c63831179668212eefcbd945ff359a45e8e1f0ed Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Wed, 14 Jun 2023 20:27:35 -0700 Subject: test/dust: convert to new stand-alone test process (#38367) --- var/spack/repos/builtin/packages/dust/package.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/var/spack/repos/builtin/packages/dust/package.py b/var/spack/repos/builtin/packages/dust/package.py index d5d0f681d3..0ee7234b89 100644 --- a/var/spack/repos/builtin/packages/dust/package.py +++ b/var/spack/repos/builtin/packages/dust/package.py @@ -33,12 +33,8 @@ class Dust(Package): print("stdout received fromm dust is '{}".format(output)) assert "Dust " in output - def test(self): - """Run this smoke test when requested explicitly""" - - dustpath = join_path(self.spec["dust"].prefix.bin, "dust") - options = ["--version"] - purpose = "Check dust can execute (with option '--version')" - expected = ["Dust "] - - self.run_test(dustpath, options=options, expected=expected, status=[0], purpose=purpose) + def test_run(self): + """check dust can execute (with option '--version')""" + dust = which(self.prefix.bin.dust) + out = dust("--version", output=str.split, error=str.split) + assert "Dust " in out -- cgit v1.2.3-70-g09d2