Skip to content

Commit

Permalink
removed --supress-stdout from spawn. check for C: in file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
stammen committed Nov 16, 2012
1 parent cfe7888 commit 8ceef77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if (! options.watch) {

// now set up the file list for vows including all the wildcard files
files = wildcardFiles.map(function (a) {
return (!a.match(/^\//))
return (!a.match(/^[\/|c|C]/))
? path.join(process.cwd(), a.replace(fileExt, ''))
: a.replace(fileExt, '');
});
Expand Down Expand Up @@ -481,8 +481,9 @@ function importSuites(files) {

function wrapSpawn(f) {
f = cwdname(f);

return function (options, callback) {
var args = [process.argv[1], '--json', '--supress-stdout', f],
var args = [process.argv[1], '--json', f],
p = spawn(process.execPath, args),
result;

Expand All @@ -496,6 +497,7 @@ function importSuites(files) {
// since we use child's stdio streams, we shouldn't rely on `exit`
// event.
//

p.on(nodeMinorVersion >= 7 ? 'close' : 'exit', function (code) {
callback(
!result ?
Expand All @@ -505,6 +507,7 @@ function importSuites(files) {
);
});


var buffer = [];
p.stdout.on('data', function (data) {
data = data.toString().split(/\n/g);
Expand Down

0 comments on commit 8ceef77

Please sign in to comment.