Commit 918623d6 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

audit-non-blink-usage.py: Assume *_test.* and *_unittest.* as tests.

Change-Id: I4a7333eeb228e825a78ba5bc84a4cb5f7531ef42
Reviewed-on: https://chromium-review.googlesource.com/979737Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545825}
parent 697401b4
......@@ -268,7 +268,11 @@ def check(path, contents):
results = []
basename, ext = os.path.splitext(path)
# Only check code. Ignore tests.
if ext not in ('.cc', '.cpp', '.h', '.mm') or basename.endswith('Test'):
# TODO(tkent): Remove 'Test' after the great mv.
if (ext not in ('.cc', '.cpp', '.h', '.mm')
or basename.endswith('Test')
or basename.endswith('_test')
or basename.endswith('_unittest')):
return results
entries = _find_matching_entries(path)
if not entries:
......
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