Skip to content

Commit 6964a54

Browse files
author
Dennis Kennetz
committed
failing appveyor, potential fix.
1 parent 2506b34 commit 6964a54

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/test_singularity.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ def test_singularity_iwdr():
3434
assert result_code != 0
3535

3636
@needs_singularity
37-
def test_singularity_pullfolder_in_env():
38-
os.environ["SINGULARITY_PULLFOLDER"] = str(os.getcwd())
39-
os.environ["SINGULARITY_CACHEDIR"] = str(os.getcwd())
40-
result_code = main(
41-
['--singularity', '--default-container', 'debian',
42-
get_data("tests/wf/iwdr-entry.cwl"), "--message", "hello"])
43-
for env in ("SINGULARITY_PULLFOLDER", "SINGULARITY_CACHEDIR"):
44-
if env in os.environ:
45-
assert result_code == 0
46-
else:
47-
assert result_code != 0
48-
@needs_singularity
4937
def test_singularity_incorrect_image_pull():
5038
result_code, _, stderr = get_main_output(
5139
['--singularity', '--default-container', 'non-existant-weird-image',
@@ -77,3 +65,15 @@ def test_singularity_pullfolder(tmp_path):
7765
else:
7866
assert result_code != 0
7967

68+
@needs_singularity
69+
def test_singularity_pullfolder_in_env():
70+
os.environ["SINGULARITY_PULLFOLDER"] = str(os.getcwd())
71+
os.environ["SINGULARITY_CACHEDIR"] = str(os.getcwd())
72+
result_code = main(
73+
['--singularity', '--default-container', 'debian',
74+
get_data("tests/wf/iwdr-entry.cwl"), "--message", "hello"])
75+
for env in ("SINGULARITY_PULLFOLDER", "SINGULARITY_CACHEDIR"):
76+
if env in os.environ:
77+
assert result_code == 0
78+
else:
79+
assert result_code != 0

0 commit comments

Comments
 (0)