Skip to content

Commit 03b817a

Browse files
authored
Merge pull request #1023 from common-workflow-language/add_exec_line
Add #!/usr/bin/env cwl-runner to *.cwl
2 parents 708ba4b + c4063d4 commit 03b817a

24 files changed

+33
-9
lines changed

tests/override/env-tool.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
class: CommandLineTool
23
cwlVersion: v1.0
34
inputs:

tests/override/env-tool_v1.1.0-dev1.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
class: CommandLineTool
23
cwlVersion: v1.1.0-dev1
34
inputs:

tests/test_pack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
from ruamel import yaml
23
import os
34
import tempfile
45
from functools import partial
@@ -26,7 +27,7 @@ def test_pack():
2627
processobj = loadingContext.loader.resolve_ref(uri)[0]
2728

2829
with open(get_data("tests/wf/expect_packed.cwl")) as packed_file:
29-
expect_packed = json.load(packed_file)
30+
expect_packed = yaml.safe_load(packed_file)
3031

3132
packed = cwltool.pack.pack(loadingContext.loader, processobj, uri, loadingContext.metadata)
3233
adjustFileObjs(packed, partial(make_relative, os.path.abspath(get_data("tests/wf"))))

tests/utf_doc_example.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
cwlVersion: v1.0
23
class: CommandLineTool
34
inputs:

tests/wf/910.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
cwlVersion: v1.0
23
class: CommandLineTool
34

tests/wf/count-lines1-wf.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
class: Workflow
23
cwlVersion: v1.0
34
requirements:

tests/wf/default-dir5.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
cwlVersion: v1.0
23
class: Workflow
34
inputs: []
@@ -18,4 +19,4 @@ steps:
1819
class: Directory
1920
location: inp1
2021
outputs: []
21-
arguments: [echo, $(inputs.inp2)]
22+
arguments: [echo, $(inputs.inp2)]

tests/wf/default-wf5.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
cwlVersion: v1.0
23
class: Workflow
34
inputs: []
@@ -10,4 +11,4 @@ steps:
1011
step1:
1112
in: []
1213
out: []
13-
run: default-dir5.cwl
14+
run: default-dir5.cwl

tests/wf/expect_packed.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
{
23
"$graph": [
34
{

tests/wf/malformed_outputs.cwl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env cwl-runner
12
cwlVersion: v1.0
23
class: CommandLineTool
34
baseCommand: echo

0 commit comments

Comments
 (0)