Skip to content

Commit 66c4227

Browse files
authored
Merge pull request #99 from common-workflow-language/no-side-effect-12
Change an example in Section 12 not to use side-effect
2 parents 736789c + 0f2f210 commit 66c4227

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

_episodes/12-env.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,23 @@ command line:
3535

3636
~~~
3737
$ cwl-runner env.cwl echo-job.yml
38-
[job 140710387785808] /home/example$ env
39-
PATH=/bin:/usr/bin:/usr/local/bin
38+
[job env.cwl] /home/example$ env > /home/example/output.txt
39+
[job env.cwl] completed success
40+
{
41+
"example_out": {
42+
"location": "file:///home/example/output.txt",
43+
"basename": "output.txt",
44+
"class": "File",
45+
"checksum": "sha1$1ca16a840b14807b2fd3323022c476b06a150e2f",
46+
"size": 94,
47+
"path": "/home/example/output.txt"
48+
}
49+
}
50+
Final process status is success
51+
$ cat output.txt
4052
HELLO=Hello world!
53+
PATH=/bin:/usr/bin:/usr/local/bin
54+
HOME=/home/example
4155
TMPDIR=/tmp/tmp63Obpk
42-
Final process status is success
43-
{}
4456
~~~
4557
{: .output}

_includes/cwl/12-env/env.cwl

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ requirements:
99
HELLO: $(inputs.message)
1010
inputs:
1111
message: string
12-
outputs: []
12+
outputs:
13+
example_out:
14+
type: stdout
15+
stdout: output.txt

_includes/cwl/conformance-test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,16 @@
129129
location: Any
130130
size: 22
131131

132-
# Section 12 depends on side-effects
132+
# Section 12
133+
- doc: Test for section 12
134+
job: 12-env/echo-job.yml
135+
tool: 12-env/env.cwl
136+
output:
137+
example_out:
138+
class: File
139+
basename: output.txt
140+
location: Any
141+
133142
# Section 13 depends on side-effects
134143
# Section 14 depends on side-effects
135144

0 commit comments

Comments
 (0)