Skip to content

Commit 835ce3d

Browse files
author
natthan-pigoux
committed
replace CWL_SINGULARITY_CACHE by CWL_SINGULARITY_IMAGES
1 parent 76ff46a commit 835ce3d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

conformance-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ elif [ "${CONTAINER}" == "docker" ]; then
6565
elif [ "${CONTAINER}" == "podman" ]; then
6666
podman pull docker.io/node:slim
6767
elif [ "${CONTAINER}" == "singularity" ]; then
68-
export CWL_SINGULARITY_CACHE="$SCRIPT_DIRECTORY/sifcache"
69-
mkdir --parents "${CWL_SINGULARITY_CACHE}"
68+
export CWL_SINGULARITY_IMAGES="$SCRIPT_DIRECTORY/sifcache"
69+
mkdir --parents "${CWL_SINGULARITY_IMAGES}"
7070
fi
7171

7272
# Setup environment

tests/test_docker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_podman_required_secfile(tmp_path: Path) -> None:
185185
def test_singularity_required_secfile(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
186186
singularity_dir = tmp_path / "singularity"
187187
singularity_dir.mkdir()
188-
monkeypatch.setenv("CWL_SINGULARITY_CACHE", str(singularity_dir))
188+
monkeypatch.setenv("CWL_SINGULARITY_IMAGES", str(singularity_dir))
189189

190190
result_code, stdout, stderr = get_main_output(
191191
[
@@ -247,7 +247,7 @@ def test_singularity_required_missing_secfile(
247247
) -> None:
248248
singularity_dir = tmp_path / "singularity"
249249
singularity_dir.mkdir()
250-
monkeypatch.setenv("CWL_SINGULARITY_CACHE", str(singularity_dir))
250+
monkeypatch.setenv("CWL_SINGULARITY_IMAGES", str(singularity_dir))
251251
result_code, stdout, stderr = get_main_output(
252252
[
253253
"--singularity",

tests/test_iwdr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def test_iwdr_permutations_singularity(
275275
twelfth.touch()
276276
outdir = str(tmp_path_factory.mktemp("outdir"))
277277
singularity_dir = str(tmp_path_factory.mktemp("singularity"))
278-
monkeypatch.setenv("CWL_SINGULARITY_CACHE", singularity_dir)
278+
monkeypatch.setenv("CWL_SINGULARITY_IMAGES", singularity_dir)
279279
err_code, stdout, _ = get_main_output(
280280
[
281281
"--outdir",
@@ -340,7 +340,7 @@ def test_iwdr_permutations_singularity_inplace(
340340
twelfth.touch()
341341
outdir = str(tmp_path_factory.mktemp("outdir"))
342342
singularity_dir = str(tmp_path_factory.mktemp("singularity"))
343-
monkeypatch.setenv("CWL_SINGULARITY_CACHE", singularity_dir)
343+
monkeypatch.setenv("CWL_SINGULARITY_IMAGES", singularity_dir)
344344
assert (
345345
main(
346346
[

tests/test_js_sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_value_from_two_concatenated_expressions_singularity(
109109
factory.loading_context.debug = True
110110
factory.runtime_context.debug = True
111111
with monkeypatch.context() as m:
112-
m.setenv("CWL_SINGULARITY_CACHE", str(singularity_cache))
112+
m.setenv("CWL_SINGULARITY_IMAGES", str(singularity_cache))
113113
m.setenv("PATH", new_paths)
114114
echo = factory.make(get_data("tests/wf/vf-concat.cwl"))
115115
file = {"class": "File", "location": get_data("tests/wf/whale.txt")}

0 commit comments

Comments
 (0)