From: Tim Starling Date: Mon, 12 Sep 2016 06:43:38 +0000 (+1000) Subject: parserTests.php: Fix exit status X-Git-Tag: 1.31.0-rc.0~5653 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=3979e37fcfa62e6d7282b58774a7e17a27fc36e1;p=lhc%2Fweb%2Fwiklou.git parserTests.php: Fix exit status The return value of Maintenance::execute() is discarded, not used as an exit status. Change-Id: I9dd92e43b5b1df1a63d0e8302d360d0bb0f57e7b --- diff --git a/tests/parser/parserTests.php b/tests/parser/parserTests.php index 8d5f072ce4..38923f0494 100644 --- a/tests/parser/parserTests.php +++ b/tests/parser/parserTests.php @@ -185,7 +185,9 @@ class ParserTestsMaintenance extends Maintenance { if ( $recorderLB ) { $recorderLB->closeAll(); } - return $ok ? 0 : 1; + if ( !$ok ) { + exit( 1 ); + } } }