@@ -1555,7 +1555,7 @@ def test_shell_cmd_inputspec_10_err(tmp_path):
1555
1555
)
1556
1556
1557
1557
1558
- def test_shell_cmd_inputsspec_11 (tmp_path ):
1558
+ def test_shell_cmd_inputspec_11 (tmp_path ):
1559
1559
input_fields = [
1560
1560
(
1561
1561
"inputFiles" ,
@@ -1599,7 +1599,7 @@ def test_shell_cmd_inputsspec_11(tmp_path):
1599
1599
wf .add (task )
1600
1600
wf .set_output ([("out" , wf .echoMultiple .lzout .outputFiles )])
1601
1601
1602
- with Submitter (plugin = "serial " ) as sub :
1602
+ with Submitter (plugin = "cf " ) as sub :
1603
1603
sub (wf )
1604
1604
result = wf .result ()
1605
1605
@@ -2781,74 +2781,6 @@ def test_shell_cmd_outputspec_3(plugin, results_function, tmp_path):
2781
2781
assert all ([file .fspath .exists () for file in res .output .newfile ])
2782
2782
2783
2783
2784
- @pytest .mark .xfail (
2785
- reason = (
2786
- "This test doesn't look like it ever worked properly. The command isn't being "
2787
- "split on ';' and instead the arguments are just treated as a list of dirs to create. "
2788
- "This includes 'tmp/newfile.txt', which fileformats now correctly detects as being "
2789
- "a directory instead of a file"
2790
- )
2791
- )
2792
- @pytest .mark .parametrize ("results_function" , [result_no_submitter , result_submitter ])
2793
- def test_shell_cmd_outputspec_4 (plugin , results_function , tmp_path ):
2794
- """
2795
- customised output_spec, adding files to the output,
2796
- using a wildcard in default (in the directory name)
2797
- """
2798
- cmd = ["mkdir" , "tmp1" , ";" , "touch" , "tmp1/newfile.txt" ]
2799
- my_output_spec = SpecInfo (
2800
- name = "Output" ,
2801
- fields = [("newfile" , File , "tmp*/newfile.txt" )],
2802
- bases = (ShellOutSpec ,),
2803
- )
2804
- shelly = ShellCommandTask (
2805
- name = "shelly" , executable = cmd , output_spec = my_output_spec , cache_dir = tmp_path
2806
- )
2807
-
2808
- res = results_function (shelly , plugin )
2809
- assert res .output .stdout == ""
2810
- assert res .output .newfile .fspath .exists ()
2811
-
2812
-
2813
- @pytest .mark .xfail (
2814
- reason = (
2815
- "This test doesn't look like it ever worked properly. The command isn't being "
2816
- "split on ';' and instead the arguments are just treated as a list of dirs to create. "
2817
- "This includes 'tmp/newfile.txt', which fileformats now correctly detects as being "
2818
- "a directory instead of a file"
2819
- )
2820
- )
2821
- @pytest .mark .parametrize ("results_function" , [result_no_submitter , result_submitter ])
2822
- def test_shell_cmd_outputspec_4a (plugin , results_function , tmp_path ):
2823
- """
2824
- customised output_spec, adding files to the output,
2825
- using a wildcard in default (in the directory name), should collect two files
2826
- """
2827
- cmd = [
2828
- "mkdir" ,
2829
- "tmp1" ,
2830
- "tmp2" ,
2831
- ";" ,
2832
- "touch" ,
2833
- "tmp1/newfile.txt" ,
2834
- "tmp2/newfile.txt" ,
2835
- ]
2836
- my_output_spec = SpecInfo (
2837
- name = "Output" ,
2838
- fields = [("newfile" , MultiOutputFile , "tmp*/newfile.txt" )],
2839
- bases = (ShellOutSpec ,),
2840
- )
2841
- shelly = ShellCommandTask (
2842
- name = "shelly" , executable = cmd , output_spec = my_output_spec , cache_dir = tmp_path
2843
- )
2844
-
2845
- res = results_function (shelly , plugin )
2846
- assert res .output .stdout == ""
2847
- # newfile is a list
2848
- assert len (res .output .newfile ) == 2
2849
- assert all ([file .exists for file in res .output .newfile ])
2850
-
2851
-
2852
2784
@pytest .mark .parametrize ("results_function" , [result_no_submitter , result_submitter ])
2853
2785
def test_shell_cmd_outputspec_5 (plugin , results_function , tmp_path ):
2854
2786
"""
@@ -3185,7 +3117,7 @@ def test_shell_cmd_outputspec_7a(tmp_path, plugin, results_function):
3185
3117
files_id = new_files_id ,
3186
3118
)
3187
3119
3188
- res = results_function (shelly , "serial" )
3120
+ res = results_function (shelly , plugin )
3189
3121
assert res .output .stdout == ""
3190
3122
assert res .output .new_files .fspath .exists ()
3191
3123
0 commit comments