Skip to content

Commit a4f4235

Browse files
author
Dennis Kennetz
committed
using first call to generate debian image and second to use image in cwltool.
1 parent b33fa48 commit a4f4235

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_singularity.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ def test_singularity_local(tmp_path):
7878
os.chdir(str(workdir))
7979
result_code, stdout, stderr = get_main_output(
8080
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"])
81-
file_in_dir = os.listdir(os.getcwd())
8281
assert result_code == 0
8382

8483
@needs_singularity
8584
def test_singularity_docker_image_id_in_tool():
86-
result_code, _, stderr = main(
85+
workdir = tmp_path / "working_dir"
86+
workdir.mkdir()
87+
os.chdir(str(workdir))
88+
result_code, stdout, stderr = get_main_output(
89+
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"])
90+
result_code1, stdout, stderr = get_main_output(
8791
['--singularity', get_data("tests/debian_image_id.cwl"), "--message", "hello"])
88-
assert result_code != 0
92+
assert result_code1 == 0

0 commit comments

Comments
 (0)