diff options
Diffstat (limited to 'tests/parser/TestFileReader.php')
-rw-r--r-- | tests/parser/TestFileReader.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/parser/TestFileReader.php b/tests/parser/TestFileReader.php index 81a1aba3be9f..fdc1e0316391 100644 --- a/tests/parser/TestFileReader.php +++ b/tests/parser/TestFileReader.php @@ -157,12 +157,6 @@ class TestFileReader { ]; if ( $nonTidySection !== false ) { - // Add non-tidy test - $this->tests[] = [ - 'result' => $data[$nonTidySection], - 'resultSection' => $nonTidySection - ] + $commonInfo; - if ( $tidySection !== false ) { // Add tidy subtest $this->tests[] = [ @@ -172,6 +166,10 @@ class TestFileReader { 'options' => $data['options'] . ' tidy', 'isSubtest' => true, ] + $commonInfo; + } else { + // We can no longer run the non-tidy test, and we don't have + // a tidy alternative. + wfDeprecated( 'skipping non-tidy test', '1.35' ); } } elseif ( $tidySection !== false ) { // No need to override desc when there is no subtest |