Permalink
Browse files

added fallback to output to stdout if no logfilename is passed. Fixin…

…g end test.js
  • Loading branch information...
1 parent f46d35e commit 2e4283c39c4cfd2d61f23387217171927686181e @pjezek committed Aug 8, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 test.js
View
@@ -61,8 +61,11 @@ function onFinishedTests () {
console.log("phantomjs> Unable to save result of Suite '" + phantom.args[1] + "'");
phantom.exit(1);
}
- phantom.exit(0);
+ } else {
+ // fallback to stdout
+ console.info(logLines);
}
+ phantom.exit(0);
};
// Polls Logger until all tests are finished with execution.

0 comments on commit 2e4283c

Please sign in to comment.