Commit 0264afc6 authored by Michael Thiessen's avatar Michael Thiessen Committed by Commit Bot

Ignore vim swap files in autotest.py

Change-Id: Iac30106a597ade4a6a7826bf5ed9890c94a1514f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135423Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Michael Thiessen <mthiesse@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756398}
parent 0fd5b7a4
...@@ -108,7 +108,8 @@ def RecursiveMatchFilename(folder, filename): ...@@ -108,7 +108,8 @@ def RecursiveMatchFilename(folder, filename):
for entry in it: for entry in it:
if (entry.is_symlink()): if (entry.is_symlink()):
continue continue
if entry.is_file() and filename in entry.path: if (entry.is_file() and filename in entry.path and
not os.path.basename(entry.path).startswith('.')):
matches.append(entry.path) matches.append(entry.path)
if entry.is_dir(): if entry.is_dir():
# On Windows, junctions are like a symlink that python interprets as a # On Windows, junctions are like a symlink that python interprets as a
......
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