Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incorrect number of outputs mentioned in error message in some …
…cases Fixed referencing outputs[2] or greater failing Made tolerant of a range of procs passed in config (procs="1-5") for resource managers that support that
- Loading branch information
Showing
10 changed files
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source ../testsupport.sh | ||
|
||
run | ||
|
||
grep -q "^mars" test.out || err "Failed to find mars printed out" | ||
grep -q "^world" test.out || err "Failed to find world printed out" | ||
grep -q "^jupiter" test.out || err "Failed to find mars printed out" | ||
|
||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
hello = { | ||
exec "echo $branch" | ||
} | ||
|
||
parallel_paths = ["mars","world","jupiter"] as Set | ||
|
||
run { | ||
parallel_paths * [ hello ] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mars |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -f e g null out*.txt hello* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source ../testsupport.sh | ||
|
||
run | ||
|
||
exists out1.txt out2.txt out3.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* The example from the documentation */ | ||
|
||
hello = { | ||
// Build a list of commands to execute in parallel | ||
def outputs = (1..3).collect { "out${it}.txt" } | ||
|
||
// Compute the commands we are going to execute | ||
int n = 0 | ||
def commands =["mars","jupiter","earth"].collect{"echo $it > ${outputs[n++]}"} | ||
|
||
// Tell Bpipe to produce the outputs from the commands | ||
produce(outputs) { | ||
multiExec commands | ||
} | ||
} | ||
|
||
run { hello } |