diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 02:39:11 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 02:39:11 +0000 |
commit | 2aefa8627e19ede126281162e4376639085e9ab0 (patch) | |
tree | 7194ced4691bdb9a82dfbdd5c0ad93930264f6d2 /PRESUBMIT.py | |
parent | 0c5051e0e08680e9d53be36775c4b0874b3158d4 (diff) | |
download | chromium_src-2aefa8627e19ede126281162e4376639085e9ab0.zip chromium_src-2aefa8627e19ede126281162e4376639085e9ab0.tar.gz chromium_src-2aefa8627e19ede126281162e4376639085e9ab0.tar.bz2 |
Make whitelist for files starting with test_ or mock_ treat path
before filename correctly.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8341004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index a475097..01ed0e9 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -49,7 +49,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): source_extensions = r'\.(cc|cpp|cxx|mm)$' file_inclusion_pattern = r'.+%s' % source_extensions file_exclusion_pattern = ( - r'((test_|mock_).+|.+(_test_support|profile_sync_service_harness|' + r'(.*/(test_|mock_).+|.+(_test_support|profile_sync_service_harness|' r'_(api|browser|perf|unit|ui)?test))%s' % source_extensions) path_exclusion_pattern = r'.*[/\\](test|tool(s)?)[/\\].*' |