From 32c06767383c030310b9d989223a976043d114e4 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 14 Aug 2024 17:18:57 +0200 Subject: [PATCH] fix Windows tests --- compliance_checker/tests/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compliance_checker/tests/test_cli.py b/compliance_checker/tests/test_cli.py index 6452eff4..a38a9d65 100644 --- a/compliance_checker/tests/test_cli.py +++ b/compliance_checker/tests/test_cli.py @@ -21,7 +21,7 @@ from .conftest import datadir, static_files if platform.system() == "Windows": - ncconfig = ["bash", f"{os.environ['CONDA_PREFIX']}\\Library\\bin\\nc-config"] + ncconfig = ["sh", f"{os.environ['CONDA_PREFIX']}\\Library\\bin\\nc-config"] else: ncconfig = ["nc-config"] @@ -246,7 +246,7 @@ def _check_libnetcdf_version(): reason="NCZarr is not officially supported for your OS as of when this API was written", ) @pytest.mark.skipif( - subprocess.check_output(["nc-config", "--has-nczarr"]) != b"yes\n", + subprocess.check_output(ncconfig + ["--has-nczarr"]) != b"yes\n", reason="NCZarr support was not built with this netCDF version", ) @pytest.mark.parametrize(