Skip to content

Commit 4a02bc7

Browse files
author
Peter Amstutz
committed
Test that expressionLib requirement of individual tool step overrides expressionLib of workflow.
1 parent 80e2501 commit 4a02bc7

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,3 +856,14 @@
856856
output: {}
857857
tool: v1.0/envvar2.cwl
858858
doc: Test $HOME and $TMPDIR are set correctly in Docker
859+
860+
- job: v1.0/empty.json
861+
output:
862+
"out": {
863+
"checksum": "sha1$7448d8798a4380162d4b56f9b452e2f6f9e24e7a",
864+
"location": "whatever.txt",
865+
"class": "File",
866+
"size": 2
867+
}
868+
tool: "v1.0/js-expr-req-wf.cwl#wf"
869+
doc: Test that expressionLib requirement of individual tool step overrides expressionLib of workflow.

v1.0/v1.0/js-expr-req-wf.cwl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cwlVersion: v1.0
2+
$graph:
3+
- id: tool
4+
class: CommandLineTool
5+
requirements:
6+
InlineJavascriptRequirement:
7+
expressionLib:
8+
- "function foo() { return 2; }"
9+
inputs: []
10+
outputs:
11+
out: stdout
12+
arguments: [echo, $(foo())]
13+
stdout: whatever.txt
14+
15+
- id: wf
16+
class: Workflow
17+
requirements:
18+
InlineJavascriptRequirement:
19+
expressionLib:
20+
- "function bar() { return 1; }"
21+
inputs: []
22+
outputs:
23+
out:
24+
type: File
25+
outputSource: tool/out
26+
steps:
27+
tool:
28+
run: "#tool"
29+
in: {}
30+
out: [out]

0 commit comments

Comments
 (0)