Skip to content

Commit

Permalink
fix method missing error when multiplying by map by list
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadedin committed Feb 20, 2015
1 parent 91d9c5c commit ce150c1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/bpipe/PipelineCategory.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class PipelineCategory {
// Map filteredBranches = branches.keySet().collectEntries { key ->
// [key, Utils.box(branches[key]).removeAll { !(it in inputs) }]
//}
splitOnMap(branches,segments)
splitOnMap(input, branches,segments)
}

log.info "Joiners for pipeline " + pipeline.hashCode() + " = " + pipeline.joiners
Expand Down
1 change: 1 addition & 0 deletions tests/split_on_map_in_branch/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -f *.txt.*
7 changes: 7 additions & 0 deletions tests/split_on_map_in_branch/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source ../testsupport.sh

run test.txt

exists test.txt.world test.txt.1.hello

true
22 changes: 22 additions & 0 deletions tests/split_on_map_in_branch/test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

hello = {
exec """
cp $input $output
"""
}

world = {
exec """
cp $input $output
"""
}

samples = [ 'foo' : 'test.txt' ]
sizes = ["1"]

run {
sizes * [
hello +
samples * [ world ]
]
}
Empty file.

0 comments on commit ce150c1

Please sign in to comment.