Skip to content

Commit a33bd15

Browse files
committed
more debugging
1 parent 9f2d59f commit a33bd15

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pydra/engine/tests/test_singularity.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,18 @@ def test_singularity_st_1(plugin, tmp_path):
103103
"""commands without arguments in container
104104
splitter = executable
105105
"""
106-
cmd = ["pwd", "ls"]
106+
cmd = ["whoami", "pwd", "ls"]
107107
image = "docker://alpine"
108108
Singu = shell.define("dummy")
109109
singu = Singu().split("executable", executable=cmd)
110110

111111
outputs = singu(
112112
plugin=plugin, environment=Singularity(image=image), cache_dir=tmp_path
113113
)
114-
assert outputs.stdout[0] == "/mnt/pydra"
115-
assert outputs.stdout[1] == ""
116-
assert outputs.return_code == [0, 0]
114+
assert outputs.stdout[0] == "root"
115+
assert outputs.stdout[1] == "/mnt/pydra"
116+
assert outputs.stdout[2] == ""
117+
assert outputs.return_code == [0, 0, 0]
117118

118119

119120
@need_singularity
@@ -372,7 +373,7 @@ def test_singularity_cmd_inputspec_copyfile_1(plugin, tmp_path):
372373
image = "docker://alpine"
373374

374375
Singu = shell.define(
375-
cmd,
376+
" ".join(cmd),
376377
inputs=[
377378
shell.arg(
378379
name="orig_file",

0 commit comments

Comments
 (0)