Merge "Temporarily trim leading/trailing whitespace from parser test clauses"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 19 Mar 2019 14:18:22 +0000 (14:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 19 Mar 2019 14:18:22 +0000 (14:18 +0000)
tests/parser/ParserTestRunner.php

index 699de95..6bf781d 100644 (file)
@@ -919,6 +919,10 @@ class ParserTestRunner {
                ScopedCallback::consume( $teardownGuard );
 
                $expected = $test['result'];
+               // Temporary hack to allow merge of T208070 patches
+               $expected = trim( $expected );
+               $out = trim( $expected );
+               // End temporary hack
                if ( count( $this->normalizationFunctions ) ) {
                        $expected = ParserTestResultNormalizer::normalize(
                                $test['expected'], $this->normalizationFunctions );