Skip to content

Commit 1e05deb

Browse files
Extend basic checks of files to framework files
Signed-off-by: Ronald Cron <[email protected]>
1 parent 72b9800 commit 1e05deb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/scripts/check_files.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,15 @@ class LicenseIssueTracker(LineIssueTracker):
373373
r'3rdparty/(?!(p256-m)/.*)',
374374
# Documentation explaining the license may have accidental
375375
# false positives.
376-
r'(ChangeLog|LICENSE|[-0-9A-Z_a-z]+\.md)\Z',
376+
r'(ChangeLog|LICENSE|framework\/LICENSE|[-0-9A-Z_a-z]+\.md)\Z',
377377
# Files imported from TF-M, and not used except in test builds,
378378
# may be under a different license.
379379
r'configs/ext/crypto_config_profile_medium\.h\Z',
380380
r'configs/ext/tfm_mbedcrypto_config_profile_medium\.h\Z',
381381
r'configs/ext/README\.md\Z',
382382
# Third-party file.
383383
r'dco\.txt\Z',
384+
r'framework\/dco\.txt\Z',
384385
]
385386
path_exemptions = re.compile('|'.join(BINARY_FILE_PATH_RE_LIST +
386387
LICENSE_EXEMPTION_RE_LIST))
@@ -486,7 +487,8 @@ def collect_files():
486487
487488
These are the regular files commited into Git.
488489
"""
489-
bytes_output = subprocess.check_output(['git', 'ls-files', '-z'])
490+
bytes_output = subprocess.check_output(['git', 'ls-files',
491+
'--recurse-submodules', '-z'])
490492
bytes_filepaths = bytes_output.split(b'\0')[:-1]
491493
ascii_filepaths = map(lambda fp: fp.decode('ascii'), bytes_filepaths)
492494
# Filter out directories. Normally Git doesn't list directories

0 commit comments

Comments
 (0)