@@ -78,7 +78,7 @@ def test_shell_cmd_2a(worker, results_function, tmp_path):
7878 cmd_exec = "echo"
7979 cmd_args = ["hail" , "pydra" ]
8080 # separate command into exec + args
81- shelly = shell .define (cmd_exec )(additional_args = cmd_args )
81+ shelly = shell .define (cmd_exec )(append_args = cmd_args )
8282
8383 assert shelly .executable == "echo"
8484 assert shelly .cmdline == "echo " + " " .join (cmd_args )
@@ -95,7 +95,7 @@ def test_shell_cmd_2b(worker, results_function, tmp_path):
9595 cmd_exec = "echo"
9696 cmd_args = ["pydra" ]
9797 # separate command into exec + args
98- shelly = shell .define (cmd_exec )(additional_args = cmd_args )
98+ shelly = shell .define (cmd_exec )(append_args = cmd_args )
9999
100100 assert shelly .executable == "echo"
101101 assert shelly .cmdline == "echo pydra"
@@ -138,10 +138,10 @@ def test_shell_cmd_4(worker, tmp_path):
138138 cmd_exec = "echo"
139139 cmd_args = [["nipype" ], ["pydra" ]]
140140 # separate command into exec + args
141- shelly = shell .define (cmd_exec )().split (additional_args = cmd_args )
141+ shelly = shell .define (cmd_exec )().split (append_args = cmd_args )
142142
143143 assert shelly .executable == "echo"
144- assert shelly .additional_args == StateArray ([["nipype" ], ["pydra" ]])
144+ assert shelly .append_args == StateArray ([["nipype" ], ["pydra" ]])
145145 # assert shelly.cmdline == ["echo nipype", "echo pydra"]
146146 outputs = shelly (worker = worker )
147147
@@ -159,14 +159,10 @@ def test_shell_cmd_5(worker, tmp_path):
159159 cmd_exec = "echo"
160160 cmd_args = [["nipype" ], ["pydra" ]]
161161 # separate command into exec + args
162- shelly = (
163- shell .define (cmd_exec )()
164- .split (additional_args = cmd_args )
165- .combine ("additional_args" )
166- )
162+ shelly = shell .define (cmd_exec )().split (append_args = cmd_args ).combine ("append_args" )
167163
168164 assert shelly .executable == "echo"
169- assert shelly .additional_args == StateArray ([["nipype" ], ["pydra" ]])
165+ assert shelly .append_args == StateArray ([["nipype" ], ["pydra" ]])
170166 # assert shelly.cmdline == ["echo nipype", "echo pydra"]
171167 outputs = shelly (worker = worker )
172168
@@ -182,11 +178,11 @@ def test_shell_cmd_6(worker, tmp_path):
182178 cmd_args = [["nipype" ], ["pydra" ]]
183179 # separate command into exec + args
184180 shelly = shell .define ("shelly" )().split (
185- ["executable" , "additional_args " ], executable = cmd_exec , additional_args = cmd_args
181+ ["executable" , "append_args " ], executable = cmd_exec , append_args = cmd_args
186182 )
187183
188184 assert shelly .executable == ["echo" , ["echo" , "-n" ]]
189- assert shelly .additional_args == StateArray ([["nipype" ], ["pydra" ]])
185+ assert shelly .append_args == StateArray ([["nipype" ], ["pydra" ]])
190186 outputs = shelly (cache_root = tmp_path , worker = worker )
191187
192188 assert outputs .stdout == ["nipype\n " , "pydra\n " , "nipype" , "pydra" ]
@@ -217,15 +213,15 @@ def test_shell_cmd_7(worker, tmp_path):
217213 shelly = (
218214 shell .define ("shelly" )()
219215 .split (
220- ["executable" , "additional_args " ],
216+ ["executable" , "append_args " ],
221217 executable = cmd_exec ,
222- additional_args = cmd_args ,
218+ append_args = cmd_args ,
223219 )
224- .combine ("additional_args " )
220+ .combine ("append_args " )
225221 )
226222
227223 assert shelly .executable == ["echo" , ["echo" , "-n" ]]
228- assert shelly .additional_args == StateArray ([["nipype" ], ["pydra" ]])
224+ assert shelly .append_args == StateArray ([["nipype" ], ["pydra" ]])
229225
230226 outputs = shelly (worker = worker )
231227
@@ -247,7 +243,7 @@ def StripAndListify(x: str) -> list[str]:
247243 return [x .strip ()]
248244
249245 listify = workflow .add (StripAndListify (x = shelly_pwd .stdout ))
250- shelly_ls = workflow .add (shell .define (cmd2 )(additional_args = listify .out ))
246+ shelly_ls = workflow .add (shell .define (cmd2 )(append_args = listify .out ))
251247 return shelly_ls .stdout
252248
253249 wf = Workflow (cmd1 = "pwd" , cmd2 = "ls" )
@@ -285,9 +281,9 @@ class Outputs(shell.Outputs):
285281 pass
286282
287283 # separate command into exec + args
288- shelly = Shelly (additional_args = cmd_args , opt_n = cmd_opt )
284+ shelly = Shelly (append_args = cmd_args , opt_n = cmd_opt )
289285 assert shelly .executable == cmd_exec
290- assert shelly .additional_args == cmd_args
286+ assert shelly .append_args == cmd_args
291287 assert shelly .cmdline == "echo -n 'hello from pydra'"
292288
293289 outputs = results_function (shelly , worker = worker , cache_root = tmp_path )
@@ -323,9 +319,9 @@ class Outputs(shell.Outputs):
323319 pass
324320
325321 # separate command into exec + args
326- shelly = Shelly (additional_args = cmd_args , opt_n = cmd_opt , opt_hello = cmd_opt_hello )
322+ shelly = Shelly (append_args = cmd_args , opt_n = cmd_opt , opt_hello = cmd_opt_hello )
327323 assert shelly .executable == cmd_exec
328- assert shelly .additional_args == cmd_args
324+ assert shelly .append_args == cmd_args
329325 assert shelly .cmdline == "echo -n HELLO 'from pydra'"
330326 outputs = results_function (shelly , worker = worker , cache_root = tmp_path )
331327 assert outputs .stdout == "HELLO from pydra"
@@ -2389,7 +2385,7 @@ class Outputs(shell.Outputs):
23892385 callable = get_stderr ,
23902386 )
23912387
2392- shelly = Shelly ().split (additional_args = args )
2388+ shelly = Shelly ().split (append_args = args )
23932389
23942390 outputs = results_function (shelly , worker = worker , cache_root = tmp_path )
23952391 for index in range (2 ):
0 commit comments