From 9f71ca5f1c8ef269dfd6491ae9b15cf830222655 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 10 Apr 2010 14:06:16 +0000 Subject: [PATCH] Follow up r62006 readding return $ok; to what is now runTests() This fixes parserTests.php not returning 0 on success. --- maintenance/parserTests.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /** -- 2.20.1