summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-03-06 17:04:54 -0500
committerBharat Mediratta <bharat@menalto.com>2013-03-06 17:04:54 -0500
commit59ea4a6a312d2891bb51bd2670635637924f7dcf (patch)
tree96eadeb37cc72d0492fdb5b5605d3cac1d43deac /modules/gallery_unit_test
parent97a156d530b22d190f2c227105fd279a049ac76d (diff)
Follow-on fix: count errors as well as test failures.
Diffstat (limited to 'modules/gallery_unit_test')
-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);