summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/controllers/gallery_unit_test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-03-06 16:13:49 -0500
committerBharat Mediratta <bharat@menalto.com>2013-03-06 16:13:49 -0500
commitd136a035e38e920f294aa71acce23a28fc6f5796 (patch)
treec670b40cfe849eda9ad320a09759a7e4f9925ff4 /modules/gallery_unit_test/controllers/gallery_unit_test.php
parent121fee8c4e8ee88017df017eaf0638cde2dd8ec5 (diff)
Explicitly print out the exit status to see if I can narrow down failures on Travis.
Diffstat (limited to 'modules/gallery_unit_test/controllers/gallery_unit_test.php')
-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);
}
}
}