mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1622974 - Add global exclude file for Thunderbird mozlint tests. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D67078 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
c7061b9ab3
commit
4543cab9bf
@ -24,6 +24,12 @@ EXCLUSION_FILES = [
|
||||
os.path.join('tools', 'rewriting', 'Generated.txt'),
|
||||
os.path.join('tools', 'rewriting', 'ThirdPartyPaths.txt'),
|
||||
]
|
||||
|
||||
EXCLUSION_FILES_OPTIONAL = []
|
||||
thunderbird_excludes = os.path.join('comm', 'tools', 'lint', 'GlobalExclude.txt')
|
||||
if os.path.exists(thunderbird_excludes):
|
||||
EXCLUSION_FILES_OPTIONAL.append(thunderbird_excludes)
|
||||
|
||||
GLOBAL_EXCLUDES = [
|
||||
'node_modules',
|
||||
'tools/lint/test/files',
|
||||
@ -43,8 +49,7 @@ def get_global_excludes(topsrcdir):
|
||||
excludes.extend([name for name in os.listdir(topsrcdir)
|
||||
if name.startswith('obj') and os.path.isdir(name)])
|
||||
|
||||
for path in EXCLUSION_FILES:
|
||||
# exclude third party paths
|
||||
for path in EXCLUSION_FILES + EXCLUSION_FILES_OPTIONAL:
|
||||
with open(os.path.join(topsrcdir, path), 'r') as fh:
|
||||
excludes.extend([f.strip() for f in fh.readlines()])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user