Commit c2d91cc4 authored by John Abd-El-Malek's avatar John Abd-El-Malek

Ignore presubmit.py when linting layout expectations files.

This is a followup to r515890

Change-Id: Ib083a3f72e84728700fe88c439d93acdc43a9ef8
Reviewed-on: https://chromium-review.googlesource.com/765215
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515892}
parent f55c8b5d
...@@ -1336,6 +1336,8 @@ class Port(object): ...@@ -1336,6 +1336,8 @@ class Port(object):
for (_, _, filenames) in self._filesystem.walk(flag_path): for (_, _, filenames) in self._filesystem.walk(flag_path):
if 'README.txt' in filenames: if 'README.txt' in filenames:
filenames.remove('README.txt') filenames.remove('README.txt')
if 'PRESUBMIT.py' in filenames:
filenames.remove('PRESUBMIT.py')
for filename in filenames: for filename in filenames:
path = self._filesystem.join(flag_path, filename) path = self._filesystem.join(flag_path, filename)
expectations[path] = self._filesystem.read_text_file(path) expectations[path] = self._filesystem.read_text_file(path)
......
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