summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-04 18:48:25 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-04 18:48:25 +0000
commite21ce3822e4e4af35360a3ea0e02b6333d3feb4b (patch)
tree9957643703740292c4cf2920f45f359e833908b0 /PRESUBMIT.py
parenta36d8703d259ba550e8af0f9e36ac05e950dc328 (diff)
downloadchromium_src-e21ce3822e4e4af35360a3ea0e02b6333d3feb4b.zip
chromium_src-e21ce3822e4e4af35360a3ea0e02b6333d3feb4b.tar.gz
chromium_src-e21ce3822e4e4af35360a3ea0e02b6333d3feb4b.tar.bz2
Fix test for files starting with test_ and mock_ for Windows.
BUG=none Review URL: http://codereview.chromium.org/9008064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 6cb1586..06c92ef 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -63,7 +63,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
source_extensions = r'\.(cc|cpp|cxx|mm)$'
file_inclusion_pattern = r'.+%s' % source_extensions
file_exclusion_patterns = (
- r'.*/(test_|mock_).+%s' % source_extensions,
+ r'.*[/\\](test_|mock_).+%s' % source_extensions,
r'.+_test_(support|base)%s' % source_extensions,
r'.+_(api|browser|perf|unit|ui)?test%s' % source_extensions,
r'.+profile_sync_service_harness%s' % source_extensions,