summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery_unit_test/controllers/gallery_unit_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php
index 5dd086b9..3275d741 100644
--- a/modules/gallery_unit_test/controllers/gallery_unit_test.php
+++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -147,7 +147,7 @@ class Gallery_Unit_Test_Controller extends Controller {
$failed = 0;
foreach ($unit_test->stats as $class => $stats) {
- $failed += $stats["failed"];
+ $failed += ($stats["failed"] + $stats["errors"]);
}
if (PHP_SAPI == 'cli') {
exit($failed);