Skip to content

Commit 8ceef77

Browse files
committed
removed --supress-stdout from spawn. check for C: in file paths
1 parent cfe7888 commit 8ceef77

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/vows

+5-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ if (! options.watch) {
263263

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

482482
function wrapSpawn(f) {
483483
f = cwdname(f);
484+
484485
return function (options, callback) {
485-
var args = [process.argv[1], '--json', '--supress-stdout', f],
486+
var args = [process.argv[1], '--json', f],
486487
p = spawn(process.execPath, args),
487488
result;
488489

@@ -496,6 +497,7 @@ function importSuites(files) {
496497
// since we use child's stdio streams, we shouldn't rely on `exit`
497498
// event.
498499
//
500+
499501
p.on(nodeMinorVersion >= 7 ? 'close' : 'exit', function (code) {
500502
callback(
501503
!result ?
@@ -505,6 +507,7 @@ function importSuites(files) {
505507
);
506508
});
507509

510+
508511
var buffer = [];
509512
p.stdout.on('data', function (data) {
510513
data = data.toString().split(/\n/g);

0 commit comments

Comments
 (0)