@@ -30,11 +30,11 @@ def test_singularity_1_nosubm(tmpdir):
30
30
assert singu .inputs .container == "singularity"
31
31
assert (
32
32
singu .cmdline
33
- == f"singularity exec -B { singu .output_dir } :/output_pydra:rw { image } { cmd } "
33
+ == f"singularity exec -B { singu .output_dir } :/output_pydra:rw --pwd /output_pydra { image } { cmd } "
34
34
)
35
35
36
36
res = singu ()
37
- assert "SingularityTask " in res .output .stdout
37
+ assert "output_pydra " in res .output .stdout
38
38
assert res .output .return_code == 0
39
39
40
40
@@ -48,7 +48,7 @@ def test_singularity_2_nosubm(tmpdir):
48
48
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
49
49
assert (
50
50
singu .cmdline
51
- == f"singularity exec -B { singu .output_dir } :/output_pydra:rw { image } { ' ' .join (cmd )} "
51
+ == f"singularity exec -B { singu .output_dir } :/output_pydra:rw --pwd /output_pydra { image } { ' ' .join (cmd )} "
52
52
)
53
53
54
54
res = singu ()
@@ -66,7 +66,7 @@ def test_singularity_2(plugin, tmpdir):
66
66
singu = SingularityTask (name = "singu" , executable = cmd , image = image , cache_dir = tmpdir )
67
67
assert (
68
68
singu .cmdline
69
- == f"singularity exec -B { singu .output_dir } :/output_pydra:rw { image } { ' ' .join (cmd )} "
69
+ == f"singularity exec -B { singu .output_dir } :/output_pydra:rw --pwd /output_pydra { image } { ' ' .join (cmd )} "
70
70
)
71
71
72
72
with Submitter (plugin = plugin ) as sub :
@@ -91,7 +91,7 @@ def test_singularity_2_singuflag(plugin, tmpdir):
91
91
)
92
92
assert (
93
93
shingu .cmdline
94
- == f"singularity exec -B { shingu .output_dir } :/output_pydra:rw { image } { ' ' .join (cmd )} "
94
+ == f"singularity exec -B { shingu .output_dir } :/output_pydra:rw --pwd /output_pydra { image } { ' ' .join (cmd )} "
95
95
)
96
96
97
97
with Submitter (plugin = plugin ) as sub :
@@ -115,7 +115,7 @@ def test_singularity_2a(plugin, tmpdir):
115
115
)
116
116
assert (
117
117
singu .cmdline
118
- == f"singularity exec -B { singu .output_dir } :/output_pydra:rw { image } { cmd_exec } { ' ' .join (cmd_args )} "
118
+ == f"singularity exec -B { singu .output_dir } :/output_pydra:rw --pwd /output_pydra { image } { cmd_exec } { ' ' .join (cmd_args )} "
119
119
)
120
120
121
121
with Submitter (plugin = plugin ) as sub :
@@ -214,7 +214,7 @@ def test_singularity_st_1(plugin, tmpdir):
214
214
assert singu .state .splitter == "singu.executable"
215
215
216
216
res = singu (plugin = plugin )
217
- assert "SingularityTask " in res [0 ].output .stdout
217
+ assert "/output_pydra " in res [0 ].output .stdout
218
218
assert res [1 ].output .stdout == ""
219
219
assert res [0 ].output .return_code == res [1 ].output .return_code == 0
220
220
@@ -249,9 +249,9 @@ def test_singularity_st_3(plugin, tmpdir):
249
249
assert singu .state .splitter == ["singu.image" , "singu.executable" ]
250
250
res = singu (plugin = plugin )
251
251
252
- assert "SingularityTask " in res [0 ].output .stdout
252
+ assert "/output_pydra " in res [0 ].output .stdout
253
253
assert "Alpine" in res [1 ].output .stdout
254
- assert "SingularityTask " in res [2 ].output .stdout
254
+ assert "/output_pydra " in res [2 ].output .stdout
255
255
assert "Ubuntu" in res [3 ].output .stdout
256
256
257
257
0 commit comments