Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change an example in Section 12 not to use side-effect #99

Merged
merged 2 commits into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 16 additions & 4 deletions _episodes/12-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,23 @@ command line:

~~~
$ cwl-runner env.cwl echo-job.yml
[job 140710387785808] /home/example$ env
PATH=/bin:/usr/bin:/usr/local/bin
[job env.cwl] /home/example$ env > /home/example/output.txt
[job env.cwl] completed success
{
"example_out": {
"location": "file:///home/example/output.txt",
"basename": "output.txt",
"class": "File",
"checksum": "sha1$1ca16a840b14807b2fd3323022c476b06a150e2f",
"size": 94,
"path": "/home/example/output.txt"
}
}
Final process status is success
$ cat output.txt
HELLO=Hello world!
PATH=/bin:/usr/bin:/usr/local/bin
HOME=/home/example
TMPDIR=/tmp/tmp63Obpk
Final process status is success
{}
~~~
{: .output}
5 changes: 4 additions & 1 deletion _includes/cwl/12-env/env.cwl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ requirements:
HELLO: $(inputs.message)
inputs:
message: string
outputs: []
outputs:
example_out:
type: stdout
stdout: output.txt
11 changes: 10 additions & 1 deletion _includes/cwl/conformance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,16 @@
location: Any
size: 22

# Section 12 depends on side-effects
# Section 12
- doc: Test for section 12
job: 12-env/echo-job.yml
tool: 12-env/env.cwl
output:
example_out:
class: File
basename: output.txt
location: Any

# Section 13 depends on side-effects
# Section 14 depends on side-effects

Expand Down