etsf-io: convert to new stand-alone test process (#35746)
This commit is contained in:
parent
36dd325187
commit
29a1c418b3
@ -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,
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user