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("check")
make("install") make("install")
def test(self): def test_etsf_io_help(self):
"""Run this smoke test when requested explicitly""" """check etsf_io can execute (--help)"""
# Test is to run "etsf_io --help" path = self.spec["etsf-io"].prefix.bin.etsf_io
spec = self.spec etsfio = which(path)
exe = join_path(spec["etsf-io"].prefix.bin, "etsf_io") out = etsfio("--help", output=str.split, error=str.split)
options = ["--help"] assert "Usage: etsf_io" in out
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,
)