aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux/maintainers_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-03-29 10:49:17 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-03-29 11:23:53 +0200
commitf325deb023e4e2fb9197004be1b3da738680429c (patch)
tree6b9e23b5f1c0afdeb72e4112d430017e19d113c0 /pkg/subsystem/linux/maintainers_test.go
parentc01f77498598ff3d147830906c4ca42e3fb1b8ff (diff)
pkg/subsystem: recognize more maintainers
Earlier we only took maintainers if there was just one MAINTAINERS record, but that was a very severe limitation. Let's try a more elaborate approach. It's also not perfect, but allows us to extract many more maintainers, while keeping false positives at zero. Group raw MAINTAINER records by their T: entries. If there's just one set of T: values per group mailing list, take the intersection of M: entries from there.
Diffstat (limited to 'pkg/subsystem/linux/maintainers_test.go')
-rw-r--r--pkg/subsystem/linux/maintainers_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/subsystem/linux/maintainers_test.go b/pkg/subsystem/linux/maintainers_test.go
index 676bbcda1..f69485eae 100644
--- a/pkg/subsystem/linux/maintainers_test.go
+++ b/pkg/subsystem/linux/maintainers_test.go
@@ -188,6 +188,7 @@ func TestLinuxMaintainers(t *testing.T) {
"linux-media@vger.kernel.org",
},
maintainers: []string{"email2@kernel.org"},
+ trees: []string{"git git://linuxtv.org/media_tree.git"},
},
{
name: "RISC-V ARCHITECTURE",
@@ -199,12 +200,14 @@ func TestLinuxMaintainers(t *testing.T) {
"email4@kernel.org",
"email5@kernel.org",
},
+ trees: []string{"git git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git"},
},
{
name: "THE REST",
includePatterns: []string{"*", "*/"},
lists: []string{"linux-kernel@vger.kernel.org"},
maintainers: []string{"email6@kernel.org"},
+ trees: []string{"git git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"},
},
}
if diff := cmp.Diff(targetResult, result,