16
16
17
17
@needs_singularity
18
18
def test_singularity_pullfolder (tmp_path ):
19
- for directory , subdir , files in os .walk (os .getcwd ()):
20
- for image in files :
21
- if image .startswith ("debian" ):
22
- os .remove (os .path .join (directory , image ))
23
- print ("removed image hiding away deep within!" )
24
19
25
20
if "SINGULARITY_PULLFOLDER" in os .environ :
26
21
del os .environ ["SINGULARITY_PULLFOLDER" ]
27
22
workdir = tmp_path / "working_dir_new"
28
23
workdir .mkdir ()
29
24
os .chdir (str (workdir ))
30
- pull_folder = tmp_path / "pull_folder"
31
- pull_folder .mkdir ()
32
- os .environ ["SINGULARITY_PULLFOLDER" ] = str (pull_folder )
25
+ pullfolder = tmp_path / "pull_folder"
26
+ pullfolder .mkdir ()
27
+ os .environ ["SINGULARITY_PULLFOLDER" ] = str (pullfolder )
33
28
if "SINGULARITY_PULLFOLDER" in os .environ :
34
29
result_code , stdout , stderr = get_main_output (
35
30
['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
@@ -40,9 +35,9 @@ def test_singularity_pullfolder(tmp_path):
40
35
workdir = tmp_path / "working_dir_new"
41
36
workdir .mkdir ()
42
37
os .chdir (str (workdir ))
43
- pull_folder = tmp_path / "pull_folder "
44
- pull_folder .mkdir ()
45
- os .environ ["SINGULARITY_PULLFOLDER" ] = str (pull_folder )
38
+ pullfolder = tmp_path / "pullfolder "
39
+ pullfolder .mkdir ()
40
+ os .environ ["SINGULARITY_PULLFOLDER" ] = str (pullfolder )
46
41
if "SINGULARITY_PULLFOLDER" in os .environ :
47
42
result_code , stdout , stderr = get_main_output (
48
43
['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
0 commit comments