Chromium Code Reviews| Index: PRESUBMIT.py |
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
| index 2836a98e46eb79826de5090fa336beb0072320eb..aa870227bc6e7086b513147a6c806391b87c7735 100644 |
| --- a/PRESUBMIT.py |
| +++ b/PRESUBMIT.py |
| @@ -296,7 +296,10 @@ def _CheckNoUNIT_TESTInSourceFiles(input_api, output_api): |
| continue |
| for line_num, line in f.ChangedContents(): |
| - if 'UNIT_TEST' in line: |
| + if 'UNIT_TEST ' in line: |
|
Jói
2013/11/18 06:41:19
Suggest combining these conditionals since the act
rvargas (doing something else)
2013/11/18 19:07:37
:) done
|
| + problems.append(' %s:%d' % (f.LocalPath(), line_num)) |
| + |
| + if line.endswith('UNIT_TEST'): |
| problems.append(' %s:%d' % (f.LocalPath(), line_num)) |
| if not problems: |