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 14 not to use side-effect #101

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions _episodes/14-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,22 @@ Now invoke `cwl-runner` with the tool wrapper and the input object on the
command line:

~~~
$ cwltool createfile.cwl echo-job.yml
[job 140528604979344] /home/example$ cat example.conf
CONFIGVAR=Hello world!
$ cwl-runner createfile.cwl echo-job.yml
[job createfile.cwl] /home/example$ cat \
example.conf > /home/example/output.txt
[job createfile.cwl] completed success
{
"example_out": {
"location": "file:///home/example/output.txt",
"basename": "output.txt",
"class": "File",
"checksum": "sha1$5d3f955d1bb862ec618bc2f7ca4c5fa29fa39e89",
"size": 22,
"path": "/home/example/output.txt"
}
}
Final process status is success
{}
$ cat output.txt
CONFIGVAR=Hello world!
~~~
{: .output}
5 changes: 4 additions & 1 deletion _includes/cwl/14-runtime/createfile.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ requirements:

inputs:
message: string
outputs: []
outputs:
example_out:
type: stdout
stdout: output.txt
12 changes: 11 additions & 1 deletion _includes/cwl/conformance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,17 @@
location: Any
size: 36

# Section 14 depends on side-effects
# Section 14
- doc: Test for section 14
job: 14-runtime/echo-job.yml
tool: 14-runtime/createfile.cwl
output:
example_out:
class: File
checksum: sha1$5d3f955d1bb862ec618bc2f7ca4c5fa29fa39e89
basename: output.txt
location: Any
size: 22

# Section 15
- doc: Test for section 15
Expand Down