tests/py-eccodes: convert to new stand-alone test process (#38346)

This commit is contained in:
Tamara Dahlgren 2023-06-15 09:58:00 -07:00 committed by GitHub
parent e642c2ea28
commit ef42fd7a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,12 +38,7 @@ def setup_dependent_build_environment(self, env, dependent_spec):
def setup_dependent_run_environment(self, env, dependent_spec):
self.setup_build_environment(env)
def test(self):
super(PyEccodes, self).test()
self.run_test(
self.spec["python"].command.path,
["-m", "eccodes", "selfcheck"],
purpose="checking system setup",
work_dir="spack-test",
)
def test_selfcheck(self):
"""checking system setup"""
python = self.spec["python"].command
python("-m", "eccodes", "selfcheck")