Skip to content

Commit

Permalink
Removing JavaScript from loop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey committed Jan 4, 2023
1 parent e85d631 commit dc16d13
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
13 changes: 13 additions & 0 deletions tests/loop/add1.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class: CommandLineTool
cwlVersion: v1.3.0-dev1
baseCommand: ["echo"]
arguments:
- valueFrom: "\$(($(inputs.i1)+1))"
inputs:
i1: int
outputs:
o1:
type: stdout
loadContent: true
outputBinding:
outputEval: $(self.content)
11 changes: 1 addition & 10 deletions tests/loop/all-output-loop-no-iteration.cwl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.3.0-dev1
class: Workflow
requirements:
InlineJavascriptRequirement: {}
inputs:
i1: int
outputs:
Expand All @@ -15,14 +13,7 @@ steps:
loop:
i1: o1
outputMethod: all
run:
class: ExpressionTool
inputs:
i1: int
outputs:
o1: int
expression: >
${return {'o1': inputs.i1 + 1};}
run: add1.cwl
in:
i1: i1
out: [o1]
11 changes: 1 addition & 10 deletions tests/loop/all-output-loop.cwl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.3.0-dev1
class: Workflow
requirements:
InlineJavascriptRequirement: {}
inputs:
i1: int
outputs:
Expand All @@ -15,14 +13,7 @@ steps:
loop:
i1: o1
outputMethod: all
run:
class: ExpressionTool
inputs:
i1: int
outputs:
o1: int
expression: >
${return {'o1': inputs.i1 + 1};}
run: add1.cwl
in:
i1: i1
out: [o1]
4 changes: 2 additions & 2 deletions tests/loop/test-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
doc: "Test a loop case with outputMethod set to all"
output:
o1: [2, 3, 4, 5, 6, 7, 8, 9, 10]
tags: [ conditional, loop, inline_javascript, workflow ]
tags: [ conditional, loop, workflow ]

- job: single-var-loop-job.yml
tool: all-output-loop-no-iteration.cwl
id: loop_with_all_output_method_no_iteration
doc: "Test a loop case with outputMethod set to all and a false condition"
output:
o1: []
tags: [ conditional, loop, inline_javascript, workflow ]
tags: [ conditional, loop, workflow ]

- job: two-vars-loop-job.yml
tool: value-from-loop.cwl
Expand Down

0 comments on commit dc16d13

Please sign in to comment.