test/dust: convert to new stand-alone test process (#38367)

This commit is contained in:
Tamara Dahlgren 2023-06-14 20:27:35 -07:00 committed by GitHub
parent 2a02bea405
commit c638311796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,12 +33,8 @@ def check_install(self):
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