summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
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 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)?)[/\\].*'