Skip to content

Commit 8ab5eb9

Browse files
author
Peter Amstutz
committed
stderr redirect tests use "echo" instead of checking for the usage message of "egrep".
1 parent d0fc2df commit 8ab5eb9

8 files changed

+24
-62
lines changed

v1.0/conformance_test_v1.0.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -78,33 +78,33 @@
7878
doc: Test command execution in Docker with stdout redirection
7979

8080
- job: v1.0/empty.json
81-
tool: v1.0/egrep-stderr.cwl
81+
tool: v1.0/stderr.cwl
8282
doc: Test command line with stderr redirection
8383
output:
8484
output_file:
8585
class: File
86-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
87-
size: 84
86+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
87+
size: 4
8888
location: error.txt
8989

9090
- job: v1.0/empty.json
91-
tool: v1.0/egrep-stderr-shortcut.cwl
91+
tool: v1.0/stderr-shortcut.cwl
9292
doc: Test command line with stderr redirection, brief syntax
9393
output:
9494
output_file:
9595
class: File
96-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
97-
size: 84
96+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
97+
size: 4
9898
location: Any
9999

100100
- output:
101101
output_file:
102102
class: File
103-
size: 84
104-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
103+
size: 4
104+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
105105
location: std.err
106106
job: v1.0/empty.json
107-
tool: v1.0/egrep-stderr-mediumcut.cwl
107+
tool: v1.0/stderr-mediumcut.cwl
108108
doc: Test command line with stderr redirection, named brief syntax
109109

110110
- job: v1.0/cat-job.json

v1.0/v1.0/egrep-stderr-mediumcut.cwl renamed to v1.0/v1.0/stderr-mediumcut.cwl

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
class: CommandLineTool
33
cwlVersion: v1.0
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
8-
95
inputs: []
10-
116
outputs:
127
output_file:
138
type: stderr
14-
15-
baseCommand: egrep
16-
successCodes: [2]
17-
9+
baseCommand: [sh, -c, "echo foo 1>&2"]
1810
stderr: std.err

v1.0/v1.0/egrep-stderr-shortcut.cwl renamed to v1.0/v1.0/stderr-shortcut.cwl

+1-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
class: CommandLineTool
33
cwlVersion: v1.0
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
8-
95
inputs: []
10-
116
outputs:
127
output_file:
138
type: stderr
14-
15-
baseCommand: egrep
16-
successCodes: [2]
9+
baseCommand: [sh, -c, "echo foo 1>&2"]

v1.0/v1.0/egrep-stderr.cwl renamed to v1.0/v1.0/stderr.cwl

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
class: CommandLineTool
33
cwlVersion: v1.0
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
85
inputs: []
96
outputs:
107
output_file:
118
type: File
129
outputBinding: {glob: error.txt}
13-
baseCommand: egrep
14-
successCodes: [2]
10+
baseCommand: [sh, -c, "echo foo 1>&2"]
1511
stderr: error.txt

v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -78,33 +78,33 @@
7878
doc: Test command execution in Docker with stdout redirection
7979

8080
- job: v1.1.0-dev1/empty.json
81-
tool: v1.1.0-dev1/egrep-stderr.cwl
81+
tool: v1.1.0-dev1/stderr.cwl
8282
doc: Test command line with stderr redirection
8383
output:
8484
output_file:
8585
class: File
86-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
87-
size: 84
86+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
87+
size: 4
8888
location: error.txt
8989

9090
- job: v1.1.0-dev1/empty.json
91-
tool: v1.1.0-dev1/egrep-stderr-shortcut.cwl
91+
tool: v1.1.0-dev1/stderr-shortcut.cwl
9292
doc: Test command line with stderr redirection, brief syntax
9393
output:
9494
output_file:
9595
class: File
96-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
97-
size: 84
96+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
97+
size: 4
9898
location: Any
9999

100100
- output:
101101
output_file:
102102
class: File
103-
size: 84
104-
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
103+
size: 4
104+
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
105105
location: std.err
106106
job: v1.1.0-dev1/empty.json
107-
tool: v1.1.0-dev1/egrep-stderr-mediumcut.cwl
107+
tool: v1.1.0-dev1/stderr-mediumcut.cwl
108108
doc: Test command line with stderr redirection, named brief syntax
109109

110110
- job: v1.1.0-dev1/cat-job.json

v1.1.0-dev1/v1.1.0-dev1/egrep-stderr-mediumcut.cwl renamed to v1.1.0-dev1/v1.1.0-dev1/stderr-mediumcut.cwl

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
class: CommandLineTool
33
cwlVersion: v1.1.0-dev1
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
8-
95
inputs: []
10-
116
outputs:
127
output_file:
138
type: stderr
14-
15-
baseCommand: egrep
16-
successCodes: [2]
17-
9+
baseCommand: [sh, -c, "echo foo 1>&2"]
1810
stderr: std.err

v1.1.0-dev1/v1.1.0-dev1/egrep-stderr-shortcut.cwl renamed to v1.1.0-dev1/v1.1.0-dev1/stderr-shortcut.cwl

+1-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
class: CommandLineTool
33
cwlVersion: v1.1.0-dev1
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
8-
95
inputs: []
10-
116
outputs:
127
output_file:
138
type: stderr
14-
15-
baseCommand: egrep
16-
successCodes: [2]
9+
baseCommand: [sh, -c, "echo foo 1>&2"]

v1.1.0-dev1/v1.1.0-dev1/egrep-stderr.cwl renamed to v1.1.0-dev1/v1.1.0-dev1/stderr.cwl

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
class: CommandLineTool
33
cwlVersion: v1.1.0-dev1
44
doc: "Test of capturing stderr output in a docker container."
5-
hints:
6-
DockerRequirement:
7-
dockerPull: debian:wheezy
85
inputs: []
96
outputs:
107
output_file:
118
type: File
129
outputBinding: {glob: error.txt}
13-
baseCommand: egrep
14-
successCodes: [2]
10+
baseCommand: [sh, -c, "echo foo 1>&2"]
1511
stderr: error.txt

0 commit comments

Comments
 (0)