Temporarily trim leading/trailing whitespace from parser test clauses
authorC. Scott Ananian <cscott@cscott.net>
Fri, 15 Mar 2019 18:15:26 +0000 (14:15 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 15 Mar 2019 18:22:38 +0000 (14:22 -0400)
This allows us to break a circular dependency in the patches for T208070.
It will be reverted as soon as T208070 is merged.

Bug: T208070
Change-Id: I3da235cb83efa424f0cf1cf4fc7233240fcdf6b2

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 );