From 48000cf34e86402d28b5e71bef5ce490bacabbff Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 4 May 2010 16:03:02 +0000 Subject: [PATCH] Specifying --run-disabled with --regex should run the tests matching the regex (disabled or not), and *only them*. Not all tests! --- maintenance/parserTests.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index ed341418d9..69d03a80d6 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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; -- 2.20.1