Follow up r62006 readding return $ok; to what is now runTests()
authorPlatonides <platonides@users.mediawiki.org>
Sat, 10 Apr 2010 14:06:16 +0000 (14:06 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 10 Apr 2010 14:06:16 +0000 (14:06 +0000)
This fixes parserTests.php not returning 0 on success.

maintenance/parserTests.inc

index 5885562..ff934ba 100644 (file)
@@ -289,7 +289,7 @@ class ParserTest {
 
        function runTests($tests) {
                $ok = true;
-        foreach($tests as $i => $t) {
+  foreach($tests as $i => $t) {
                        $result =
                                $this->runTest($t['test'], $t['input'], $t['result'], $t['options'], $t['config']);
                        $ok = $ok && $result;
@@ -298,6 +298,7 @@ class ParserTest {
                if ( $this->showProgress ) {
                        print "\n";
                }
+  return $ok;
        }
 
        /**