14
14
sys .argv = ['' ]
15
15
16
16
17
+ @needs_singularity
18
+ def test_singularity_pullfolder (tmp_path ):
19
+ workdir = tmp_path / "working_dir_new"
20
+ workdir .mkdir ()
21
+ os .chdir (str (workdir ))
22
+ pull_folder = tmp_path / "pull_folder"
23
+ pull_folder .mkdir ()
24
+ os .environ ["SINGULARITY_PULLFOLDER" ] = str (pull_folder )
25
+ if "SINGULARITY_PULLFOLDER" in os .environ :
26
+ result_code , stdout , stderr = get_main_output (
27
+ ['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
28
+ assert result_code == 0
29
+ else :
30
+ assert result_code != 0
31
+
17
32
@needs_singularity
18
33
def test_singularity_workflow (tmpdir ):
19
34
with working_directory (str (tmpdir )):
@@ -40,21 +55,6 @@ def test_singularity_incorrect_image_pull():
40
55
get_data ("tests/wf/hello-workflow.cwl" ), "--usermessage" , "hello" ])
41
56
assert result_code != 0
42
57
43
- @needs_singularity
44
- def test_singularity_pullfolder (tmp_path ):
45
- workdir = tmp_path / "working_dir_new"
46
- workdir .mkdir ()
47
- os .chdir (str (workdir ))
48
- pull_folder = tmp_path / "pull_folder"
49
- pull_folder .mkdir ()
50
- os .environ ["SINGULARITY_PULLFOLDER" ] = str (pull_folder )
51
- if "SINGULARITY_PULLFOLDER" in os .environ :
52
- result_code , stdout , stderr = get_main_output (
53
- ['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
54
- assert result_code == 0
55
- else :
56
- assert result_code != 0
57
-
58
58
@needs_singularity
59
59
def test_singularity_local (tmp_path ):
60
60
workdir = tmp_path / "working_dir"
0 commit comments