Skip to content

Commit c2a1d60

Browse files
committed
[isolate] collect results
1 parent b275024 commit c2a1d60

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bin/vows

+10-2
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,17 @@ function importSuites(files) {
400400
return;
401401
}
402402

403-
var result = stdout.split(/\n/g).map(function(i) {
403+
stdout = stdout.split(/\n/g);
404+
405+
var result = stdout.pop();
406+
stdout.map(function(i) {
404407
if (i) {
405-
reporter.report(JSON.parse(i));
408+
i = JSON.parse(i);
409+
if (i && i[0] === 'finish') {
410+
callback(i[1]);
411+
} else {
412+
reporter.report(i);
413+
}
406414
}
407415
});
408416
})

0 commit comments

Comments
 (0)