From 3979e37fcfa62e6d7282b58774a7e17a27fc36e1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 12 Sep 2016 16:43:38 +1000 Subject: [PATCH] parserTests.php: Fix exit status The return value of Maintenance::execute() is discarded, not used as an exit status. Change-Id: I9dd92e43b5b1df1a63d0e8302d360d0bb0f57e7b --- tests/parser/parserTests.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); + } } } -- 2.20.1