diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/grunt/utils.js | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 97e7c416..ed61a181 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -246,10 +246,18 @@ module.exports = {      };    }, -  parallelTask: function(name) { -    var args = [name, '--port=' + this.lastParallelTaskPort]; +  parallelTask: function(args, options) { +    var task = { +      grunt: true, +      args: args, +      stream: options && options.stream +    }; + +    args.push('--port=' + this.lastParallelTaskPort); -    if (grunt.option('browsers')) { +    if (args.indexOf('test:e2e') !== -1 && grunt.option('e2e-browsers')) { +      args.push('--browsers=' + grunt.option('e2e-browsers')); +    } else if (grunt.option('browsers')) {        args.push('--browsers=' + grunt.option('browsers'));      } @@ -259,8 +267,7 @@ module.exports = {      this.lastParallelTaskPort++; - -    return {grunt: true, args: args}; +    return task;    },    lastParallelTaskPort: 9876 | 
