1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Allocate two ports to each worker.

This commit is contained in:
Simo Kinnunen 2014-01-30 16:18:29 +09:00
parent e0426d01be
commit c45c081c6f
3 changed files with 43 additions and 12 deletions

View file

@ -9,3 +9,12 @@ module.exports.allUnknownArgs = function(args) {
module.exports.lastArg = function(args) {
return args[args.length - 1]
}
module.exports.range = function(from, to) {
var items = []
, i
for (i = from; i <= to; ++i) {
items.push(i)
}
return items
}