Skip to content

Commit

Permalink
Force exit in BashReporter
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Feb 15, 2012
1 parent 7999ad1 commit bd7fc58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/reporter/BashReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ BashReporter.prototype._handleFileEnd = function(file, err, output) {
BashReporter.prototype._handleEnd = function() {
process.stdout.write('\n');
clearInterval(this._interval);
if (this._fail > 0) process.exit(1);

var exitCode = (this._fail > 0)
? 1
: 0;

process.exit(exitCode);
};

BashReporter.prototype.updateProgress = function() {
Expand Down

0 comments on commit bd7fc58

Please sign in to comment.