Commit 9f60fa9b by Scott

Use correct exit codes

Fixes command-line issues e.g. running unit tests
parent ae6abf90
...@@ -705,7 +705,9 @@ ...@@ -705,7 +705,9 @@
*/ */
{ {
qa_report_process_stage('shutdown', $reason); qa_report_process_stage('shutdown', $reason);
exit;
$code = $reason === 'error' ? 1 : 0;
exit($code);
} }
......
<?php <?php
// Stand-in config file for PHPUnit // Stand-in config file for PHPUnit
define('QA_MYSQL_HOSTNAME', ''); define('QA_MYSQL_HOSTNAME', 'localhost');
define('QA_MYSQL_USERNAME', ''); define('QA_MYSQL_USERNAME', '');
define('QA_MYSQL_PASSWORD', ''); define('QA_MYSQL_PASSWORD', '');
define('QA_MYSQL_DATABASE', ''); define('QA_MYSQL_DATABASE', '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment