Commit 3cb7f0b5 authored by Mustafa Emre Acer's avatar Mustafa Emre Acer Committed by Commit Bot

Exclude OWNERS and README.md files while uploading screenshots

Bug: 814906
Change-Id: I34fea3500218fee452d2c6134002cdb3aa43d071
Reviewed-on: https://chromium-review.googlesource.com/1149085Reviewed-by: default avataranthonyvd <anthonyvd@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579443}
parent 558d7792
# This OWNERS file is for testing. Point it to the original so as not to break
# this directory.
file://tools/translation/OWNERS
Test readme file
\ No newline at end of file
......@@ -131,7 +131,7 @@ def find_screenshots(repo_root, translation_expectations):
if not os.path.exists(screenshots_dir):
continue
for f in os.listdir(screenshots_dir):
if f.endswith('.sha1'):
if f in ('OWNERS', 'README.md') or f.endswith('.sha1'):
continue
if not f.endswith('.png'):
print 'File with unexpected extension: %s in %s' % (f, screenshots_dir)
......
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