summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2023-06-14 20:27:35 -0700
committerGitHub <noreply@github.com>2023-06-14 20:27:35 -0700
commitc63831179668212eefcbd945ff359a45e8e1f0ed (patch)
treec9b34ce0b0d5462adcdb5af47abd4d3321044be7
parent2a02bea4056cf97f69bae0a1b1fef6f6ef750f97 (diff)
downloadspack-c63831179668212eefcbd945ff359a45e8e1f0ed.tar.gz
spack-c63831179668212eefcbd945ff359a45e8e1f0ed.tar.bz2
spack-c63831179668212eefcbd945ff359a45e8e1f0ed.tar.xz
spack-c63831179668212eefcbd945ff359a45e8e1f0ed.zip
test/dust: convert to new stand-alone test process (#38367)
-rw-r--r--var/spack/repos/builtin/packages/dust/package.py14
1 files 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