etsf-io: convert to new stand-alone test process (#35746)

This commit is contained in:
Tamara Dahlgren 2023-06-24 06:59:48 -07:00 committed by GitHub
parent 36dd325187
commit 29a1c418b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,23 +52,10 @@ def install(self, spec, prefix):
make("check")
make("install")
def test(self):
"""Run this smoke test when requested explicitly"""
def test_etsf_io_help(self):
"""check etsf_io can execute (--help)"""
# Test is to run "etsf_io --help"
spec = self.spec
exe = join_path(spec["etsf-io"].prefix.bin, "etsf_io")
options = ["--help"]
purpose = "Check etsf_io can execute (--help)"
expected = ["Usage: etsf_io"]
self.run_test(
exe,
options=options,
expected=expected,
status=[0],
installed=False,
purpose=purpose,
skip_missing=False,
work_dir=None,
)
path = self.spec["etsf-io"].prefix.bin.etsf_io
etsfio = which(path)
out = etsfio("--help", output=str.split, error=str.split)
assert "Usage: etsf_io" in out