Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Pipe process.stdin to child.stdin in case of interactive debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
teerapap committed Jan 18, 2015
1 parent 6c0455e commit efc311b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/protractor_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,14 @@ module.exports = function(grunt) {
}
}
);
process.stdin.pipe(child.stdin);

This comment has been minimized.

Copy link
@sullivanpt

sullivanpt Sep 17, 2015

Contributor

FYI: this line throws an EINVAL exception when running node 0.10.38 in the git bash shell on Windows 10. Work-around is to run grunt in a CMD window or to comment out this line.
Reference nodejs/node-v0.x-archive#6459 (comment)

child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);

// Write the result in the output file
if (!grunt.util._.isUndefined(opts.output) && opts.output !== false) {

grunt.verbose.writeln("Write the result to: " + opts.output);
grunt.log.writeln("Output test result to: " + opts.output);

grunt.file.mkdir(path.dirname(opts.output));

Expand Down

0 comments on commit efc311b

Please sign in to comment.