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(