From: Platonides Date: Sat, 10 Apr 2010 14:06:16 +0000 (+0000) Subject: Follow up r62006 readding return $ok; to what is now runTests() X-Git-Tag: 1.31.0-rc.0~37164 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=9f71ca5f1c8ef269dfd6491ae9b15cf830222655;p=lhc%2Fweb%2Fwiklou.git Follow up r62006 readding return $ok; to what is now runTests() This fixes parserTests.php not returning 0 on success. --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 58855624b8..ff934ba085 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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; } /**