@@ -263,7 +263,7 @@ if (! options.watch) {
263
263
264
264
// now set up the file list for vows including all the wildcard files
265
265
files = wildcardFiles . map ( function ( a ) {
266
- return ( ! a . match ( / ^ \/ / ) )
266
+ return ( ! a . match ( / ^ [ \/ | c | C ] / ) )
267
267
? path . join ( process . cwd ( ) , a . replace ( fileExt , '' ) )
268
268
: a . replace ( fileExt , '' ) ;
269
269
} ) ;
@@ -481,8 +481,9 @@ function importSuites(files) {
481
481
482
482
function wrapSpawn ( f ) {
483
483
f = cwdname ( f ) ;
484
+
484
485
return function ( options , callback ) {
485
- var args = [ process . argv [ 1 ] , '--json' , '--supress-stdout' , f ] ,
486
+ var args = [ process . argv [ 1 ] , '--json' , f ] ,
486
487
p = spawn ( process . execPath , args ) ,
487
488
result ;
488
489
@@ -496,6 +497,7 @@ function importSuites(files) {
496
497
// since we use child's stdio streams, we shouldn't rely on `exit`
497
498
// event.
498
499
//
500
+
499
501
p . on ( nodeMinorVersion >= 7 ? 'close' : 'exit' , function ( code ) {
500
502
callback (
501
503
! result ?
@@ -505,6 +507,7 @@ function importSuites(files) {
505
507
) ;
506
508
} ) ;
507
509
510
+
508
511
var buffer = [ ] ;
509
512
p . stdout . on ( 'data' , function ( data ) {
510
513
data = data . toString ( ) . split ( / \n / g) ;
0 commit comments