Skip to content

Commit f93bc61

Browse files
committed
tests: maintainers: fix false positives on build files
The build files are sometimes outside of the directory covered by the new MAINTAINERS entry. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0a1066f commit f93bc61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/series/maintainers/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def check_maintainer_coverage(tree, new_files, out):
102102
pass_target = 3
103103

104104
for file_path in new_files:
105+
# The build files are sometimes outside of the directory covered
106+
# by the new MAINTAINERS entry
107+
if file_path.endswith(("/Makefile", "/Kconfig")):
108+
continue
109+
105110
out.append("\nChecking coverage for a new file: " + file_path)
106111

107112
maintainer_info = get_maintainer_entry_for_file(tree, file_path)

0 commit comments

Comments
 (0)