Skip to content

Commit

Permalink
specifying python2 as baseCommand in order for tests to work with sys…
Browse files Browse the repository at this point in the history
…tems where python3 is the default
  • Loading branch information
Luka Stojanovic committed Dec 8, 2016
1 parent f5c5f4d commit 25975b0
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion v1.0/v1.0/bwa-mem-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hints:
- class: ResourceRequirement
coresMin: 4
- class: DockerRequirement
dockerPull: python
dockerPull: python:2-alpine

inputs:
- id: reference
Expand Down
2 changes: 1 addition & 1 deletion v1.0/v1.0/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Toy program to generate inverted index of word to line.
# Takes input text file on stdin and prints output index on stdout.
Expand Down
6 changes: 3 additions & 3 deletions v1.0/v1.0/search.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cwlVersion: v1.0
$graph:
- id: index
class: CommandLineTool
baseCommand: python
baseCommand: python2
arguments:
- valueFrom: input.txt
position: 1
Expand Down Expand Up @@ -36,7 +36,7 @@ $graph:

- id: search
class: CommandLineTool
baseCommand: python
baseCommand: python2
requirements:
- class: InlineJavascriptRequirement
inputs:
Expand Down Expand Up @@ -93,4 +93,4 @@ $graph:
in:
file: "#main/index/result"
term: "#main/term"
out: [result]
out: [result]
2 changes: 1 addition & 1 deletion v1.0/v1.0/search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Toy program to search inverted index and print out each line the term
# appears.
Expand Down
2 changes: 1 addition & 1 deletion v1.0/v1.0/stagefile.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outputs:
type: File
outputBinding:
glob: bob.txt
baseCommand: "python"
baseCommand: "python2"
arguments:
- "-c"
- |
Expand Down
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/bwa-mem-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hints:
- class: ResourceRequirement
coresMin: 4
- class: DockerRequirement
dockerPull: python
dockerPull: python:2-alpine

inputs:
- id: reference
Expand Down
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Toy program to generate inverted index of word to line.
# Takes input text file on stdin and prints output index on stdout.
Expand Down
6 changes: 3 additions & 3 deletions v1.1.0-dev1/v1.1.0-dev1/search.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cwlVersion: v1.1.0-dev1
$graph:
- id: index
class: CommandLineTool
baseCommand: python
baseCommand: python2
arguments:
- valueFrom: input.txt
position: 1
Expand Down Expand Up @@ -36,7 +36,7 @@ $graph:

- id: search
class: CommandLineTool
baseCommand: python
baseCommand: python2
requirements:
- class: InlineJavascriptRequirement
inputs:
Expand Down Expand Up @@ -93,4 +93,4 @@ $graph:
in:
file: "#main/index/result"
term: "#main/term"
out: [result]
out: [result]
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Toy program to search inverted index and print out each line the term
# appears.
Expand Down
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/stagefile.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outputs:
type: File
outputBinding:
glob: bob.txt
baseCommand: "python"
baseCommand: "python2"
arguments:
- "-c"
- |
Expand Down

0 comments on commit 25975b0

Please sign in to comment.