Specifying --run-disabled with --regex should run the tests matching the regex (disab...
authorPlatonides <platonides@users.mediawiki.org>
Tue, 4 May 2010 16:03:02 +0000 (16:03 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 4 May 2010 16:03:02 +0000 (16:03 +0000)
maintenance/parserTests.inc

index ed34141..69d03a8 100644 (file)
@@ -1687,8 +1687,8 @@ class TestFileIterator implements Iterator {
                                        if (!isset( $data['config'] ) )
                                                $data['config'] = '';
 
-                                       if ( $this->parser && (preg_match('/\\bdisabled\\b/i', $data['options'])
-                                               || !preg_match("/{$this->parser->regex}/i", $data['test'])) && !$this->parser->runDisabled ) {
+                                       if ( $this->parser && (preg_match('/\\bdisabled\\b/i', $data['options']) && !$this->parser->runDisabled)
+                                               || !preg_match("/{$this->parser->regex}/i", $data['test'])  ) {
                                                # disabled test
                                                $data = array();
                                                $section = null;