Skip to content

Commit

Permalink
[isolate] collect results
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Aug 3, 2011
1 parent b275024 commit c2a1d60
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,17 @@ function importSuites(files) {
return;
}

var result = stdout.split(/\n/g).map(function(i) {
stdout = stdout.split(/\n/g);

var result = stdout.pop();
stdout.map(function(i) {
if (i) {
reporter.report(JSON.parse(i));
i = JSON.parse(i);
if (i && i[0] === 'finish') {
callback(i[1]);
} else {
reporter.report(i);
}
}
});
})
Expand Down

0 comments on commit c2a1d60

Please sign in to comment.