Skip to content

Commit

Permalink
skip over non json results
Browse files Browse the repository at this point in the history
  • Loading branch information
stammen committed Nov 16, 2012
1 parent b5438a1 commit aace8dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,19 @@ function importSuites(files) {

data.forEach(function (data) {
if (data && data !== 'undefined') {
try {

data = JSON.parse(data);

// on win32 we may get back console.log strings which break JSON.parse
if (data && data[0] === 'finish') {
result = data[1];
} else {
reporter.report(data);
}
} catch(e) {

}
}
});
}
Expand Down

0 comments on commit aace8dd

Please sign in to comment.