Skip to content

Commit 9ce806b

Browse files
authored
empty.yml can't be quite empty..?
Avoid bug: ``` Resolved 'expression.cwl' to 'file:///home/stain/src/cwl-test/expression.cwl' Traceback (most recent call last): File "/home/stain/bin/cwl-runner", line 11, in <module> sys.exit(main()) File "/home/stain/.local/lib/python2.7/site-packages/cwltool/main.py", line 701, in main fetcher_constructor=fetcher_constructor) File "/home/stain/.local/lib/python2.7/site-packages/cwltool/main.py", line 494, in load_job_order if "cwl:tool" in job_order_object: TypeError: argument of type 'NoneType' is not iterable ```
1 parent 37ef31c commit 9ce806b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

v1.0/UserGuide.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,17 @@
662662
- |
663663
```
664664
665-
As this tool does not require any `inputs` we can run it with an empty job file:
665+
As this tool does not require any `inputs` we can run it with an (almost) empty job file:
666+
667+
*empty.yml*
668+
```
669+
- $include: examples/empty.yml
670+
- |
671+
```
672+
673+
We can then run `expression.cwl`:
666674
667675
```
668-
$ touch empty.yml
669676
$ cwl-runner expression.cwl empty.yml
670677
[job 140000594593168] /home/example$ echo -A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
671678
-A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1

0 commit comments

Comments
 (0)