Skip to content

Commit

Permalink
test for running high concurrency pipeline at low concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadedin committed May 19, 2015
1 parent 38cbc9a commit 16b91b7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/nested_parallel_low_concur/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source ../testsupport.sh

bpipe run -n 5 test.groovy > test.out

grep -q 'n / 28' test.out || err "Did not find expected stage output n / 28"

true
19 changes: 19 additions & 0 deletions tests/nested_parallel_low_concur/test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
hello = {
exec "echo $branch.parent / $branch.name ; sleep 1"
}

world = {

}

names = (97..110).collect { Character.toString((char)it) }

ages = (20..28)

run {
names * [
ages * [
hello + world
]
]
}

0 comments on commit 16b91b7

Please sign in to comment.