@@ -40,19 +40,9 @@ def test_singularity_incorrect_image_pull():
40
40
get_data ("tests/wf/hello-workflow.cwl" ), "--usermessage" , "hello" ])
41
41
assert result_code != 0
42
42
43
- @needs_singularity
44
- def test_singularity_local (tmp_path ):
45
- workdir = tmp_path / "working_dir"
46
- workdir .mkdir ()
47
- os .chdir (str (workdir ))
48
- result_code , stdout , stderr = get_main_output (
49
- ['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
50
- file_in_dir = os .listdir (os .getcwd ())
51
- assert result_code == 0
52
-
53
43
@needs_singularity
54
44
def test_singularity_pullfolder (tmp_path ):
55
- workdir = tmp_path / "working_dir "
45
+ workdir = tmp_path / "working_dir_new "
56
46
workdir .mkdir ()
57
47
os .chdir (str (workdir ))
58
48
pull_folder = tmp_path / "pull_folder"
@@ -66,16 +56,12 @@ def test_singularity_pullfolder(tmp_path):
66
56
assert result_code != 0
67
57
68
58
@needs_singularity
69
- def test_singularity_pullfolder_in_env (tmp_path ):
70
- os .environ ["SINGULARITY_PULLFOLDER" ] = str (os .getcwd ())
71
- os .environ ["SINGULARITY_CACHEDIR" ] = str (os .getcwd ())
59
+ def test_singularity_local (tmp_path ):
72
60
workdir = tmp_path / "working_dir"
73
61
workdir .mkdir ()
74
62
os .chdir (str (workdir ))
75
63
result_code , stdout , stderr = get_main_output (
76
64
['--singularity' , get_data ("tests/sing_pullfolder_test.cwl" ), "--message" , "hello" ])
77
- for env in ("SINGULARITY_PULLFOLDER" , "SINGULARITY_CACHEDIR" ):
78
- if env in os .environ :
79
- assert result_code == 0
80
- else :
81
- assert result_code != 0
65
+ file_in_dir = os .listdir (os .getcwd ())
66
+ assert result_code == 0
67
+
0 commit comments