parserTests.php: Fix exit status
authorTim Starling <tstarling@wikimedia.org>
Mon, 12 Sep 2016 06:43:38 +0000 (16:43 +1000)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 12 Sep 2016 06:48:17 +0000 (06:48 +0000)
The return value of Maintenance::execute() is discarded, not used as an
exit status.

Change-Id: I9dd92e43b5b1df1a63d0e8302d360d0bb0f57e7b

tests/parser/parserTests.php

index 8d5f072..38923f0 100644 (file)
@@ -185,7 +185,9 @@ class ParserTestsMaintenance extends Maintenance {
                if ( $recorderLB ) {
                        $recorderLB->closeAll();
                }
-               return $ok ? 0 : 1;
+               if ( !$ok ) {
+                       exit( 1 );
+               }
        }
 }