Skip to content

Commit 32774ec

Browse files
committed
updated singularity tests
1 parent de84925 commit 32774ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydra/engine/tests/test_environments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ def test_singularity_1(tmp_path):
125125
def newcache(x):
126126
makedir(tmp_path, x)
127127

128-
cmd = ["whoami"]
128+
cmd = "whoami"
129129
sing = Singularity(image="docker://alpine")
130130
shell_def = shell.define(cmd)
131131
shelly = Task(
132132
definition=shell_def,
133133
submitter=Submitter(cache_dir=newcache("shelly")),
134134
name="shelly",
135135
)
136-
assert shell_def.cmdline == " ".join(cmd)
136+
assert shell_def.cmdline == cmd
137137
outputs_dict = sing.execute(shelly)
138138

139139
with Submitter(cache_dir=newcache("shelly_sub"), environment=sing) as sub:
@@ -152,15 +152,15 @@ def test_singularity_1_subm(tmp_path, plugin):
152152
def newcache(x):
153153
makedir(tmp_path, x)
154154

155-
cmd = ["whoami"]
155+
cmd = "whoami"
156156
sing = Singularity(image="docker://alpine")
157157
shell_def = shell.define(cmd)
158158
shelly = Task(
159159
definition=shell_def,
160160
submitter=Submitter(cache_dir=newcache("shelly")),
161161
name="shelly",
162162
)
163-
assert shell_def.cmdline == " ".join(cmd)
163+
assert shell_def.cmdline == cmd
164164
outputs_dict = sing.execute(shelly)
165165

166166
with Submitter(worker=plugin) as sub:

0 commit comments

Comments
 (0)