Skip to content

Commit faf0b43

Browse files
author
Dennis Kennetz
committed
changed tool for test
1 parent 18c2e21 commit faf0b43

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_singularity.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ def test_singularity_pullfolder(tmp_path):
6969
def test_singularity_pullfolder_in_env():
7070
os.environ["SINGULARITY_PULLFOLDER"] = str(os.getcwd())
7171
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"])
72+
workdir = tmp_path / "working_dir"
73+
workdir.mkdir()
74+
os.chdir(str(workdir))
75+
result_code, stdout, stderr = get_main_output(
76+
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"])
7577
for env in ("SINGULARITY_PULLFOLDER", "SINGULARITY_CACHEDIR"):
7678
if env in os.environ:
77-
assert result_code == 33
78-
else:
7979
assert result_code == 0
80+
else:
81+
assert result_code != 0

0 commit comments

Comments
 (0)