Skip to content

Commit 9b941df

Browse files
committed
New: add test for issue #910
1 parent 91e9e9f commit 9b941df

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

tests/test_relocate.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from cwltool.main import main
2+
3+
from .util import get_data, needs_docker
4+
5+
@needs_docker
6+
def test_for_910():
7+
assert main([get_data('tests/wf/910.cwl')]) == 0
8+
assert main([get_data('tests/wf/910.cwl')]) == 0

tests/wf/910.cwl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cwlVersion: v1.0
2+
class: CommandLineTool
3+
4+
requirements:
5+
- class: InlineJavascriptRequirement
6+
- class: InitialWorkDirRequirement
7+
listing: |
8+
${
9+
return [{"class": "Directory",
10+
"basename": "default",
11+
"listing": [{"class": "File",
12+
"basename": "file.txt",
13+
"contents": "Hello world"}
14+
],
15+
"writable": true}]
16+
}
17+
18+
hints:
19+
- class: DockerRequirement
20+
dockerPull: ubuntu
21+
22+
inputs: []
23+
24+
outputs:
25+
26+
output_folder:
27+
type: Directory
28+
outputBinding:
29+
glob: "*"
30+
31+
baseCommand: [ls]

0 commit comments

Comments
 (0)