Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed --supress-stdout from spawn. check for C: in file paths

  • Loading branch information...
commit 8ceef77bdce441534315b8da9d05333df259da31 1 parent cfe7888
@stammen stammen authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin/vows
View
7 bin/vows
@@ -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, '');
});
@@ -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;
@@ -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 ?
@@ -505,6 +507,7 @@ function importSuites(files) {
);
});
+
var buffer = [];
p.stdout.on('data', function (data) {
data = data.toString().split(/\n/g);
Please sign in to comment.
Something went wrong with that request. Please try again.