summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/controllers/gallery_unit_test.php4
1 files changed, 3 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 55d0abc1..cf2f7c99 100644
--- a/modules/gallery_unit_test/controllers/gallery_unit_test.php
+++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -150,7 +150,9 @@ class Gallery_Unit_Test_Controller extends Controller {
// Let the CLI caller know whether all tests passed or not,
// to allow usage of continuous integration servers.
if (PHP_SAPI == 'cli') {
- exit($all_tests_passed ? 0 : 1);
+ $exit_status = $all_tests_passed ? 0 : 1;
+ print "Exit: $exit_status\n";
+ exit($exit_status);
}
}
}