Commit 1677590c authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Don't filter Test in Blink auditing

After the Great Blink mv
(https://chromium-review.googlesource.com/1001152) Test is not part of
any path.

Bug: None
Change-Id: Ie947e07653f29e8e45db2b87d015de09806345d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096639Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748973}
parent d218dc52
...@@ -1137,11 +1137,9 @@ def check(path, contents): ...@@ -1137,11 +1137,9 @@ def check(path, contents):
path = path.replace('\\', '/') path = path.replace('\\', '/')
basename, ext = os.path.splitext(path) basename, ext = os.path.splitext(path)
# Only check code. Ignore tests and fuzzers. # Only check code. Ignore tests and fuzzers.
# TODO(tkent): Remove 'Test' after the great mv.
if (ext not in ('.cc', '.cpp', '.h', '.mm') if (ext not in ('.cc', '.cpp', '.h', '.mm')
or path.find('/testing/') >= 0 or path.find('/testing/') >= 0
or path.find('/tests/') >= 0 or path.find('/tests/') >= 0
or basename.endswith('Test')
or basename.endswith('_test') or basename.endswith('_test')
or basename.endswith('_test_helpers') or basename.endswith('_test_helpers')
or basename.endswith('_unittest') or basename.endswith('_unittest')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment