Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Tests exit with correct exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Tatarintsev committed Sep 30, 2014
1 parent 13ee914 commit 3d781cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Dev

* `test` command will exit with correct codes

## 0.8.0 - 2014-09-30

* New image comparison algorithm is implemented:
Expand Down
4 changes: 2 additions & 2 deletions lib/cli/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ module.exports = function() {
});
})
.then(function(stats) {
if (stats.failed > 0 && stats.errored > 0) {
if (stats.failed > 0 || stats.errored > 0) {
return 2;
}
return 1;
return 0;
})
.then(common.exitCoa)
.fail(common.handleErrors);
Expand Down

0 comments on commit 3d781cc

Please sign in to comment.