* [PATCH] get_maintainer: add KUnit maintainers for KUnit test files
@ 2026-03-01 1:07 Matteo Croce
0 siblings, 0 replies; only message in thread
From: Matteo Croce @ 2026-03-01 1:07 UTC (permalink / raw)
To: Joe Perches, Brendan Higgins, David Gow; +Cc: linux-kselftest, linux-kernel
KUnit test files are scattered across the tree and don't always match
the F: patterns in the KERNEL UNIT TESTING FRAMEWORK MAINTAINERS entry.
Add the KUnit maintainers automatically when the file path matches
common KUnit naming conventions: _kunit.c, -kunit.c, _kunit_test.c,
and -kunit-tests.c.
---
scripts/get_maintainer.pl | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 4414194bedcf..c07723af4132 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -966,6 +966,20 @@ sub get_maintainers {
}
}
+ ## Add KUnit maintainers for KUnit test files
+ if ($file =~ m/[_-]kunit[_-]?.*\.c$/) {
+ my $kunit_tvi = find_first_section();
+ while ($kunit_tvi < @typevalue) {
+ my $kunit_start = find_starting_index($kunit_tvi);
+ if ($typevalue[$kunit_start] =~ m/^KERNEL UNIT TESTING FRAMEWORK/) {
+ $hash{$kunit_tvi} = 0;
+ add_categories($kunit_tvi, "");
+ last;
+ }
+ $kunit_tvi = find_ending_index($kunit_tvi) + 1;
+ }
+ }
+
maintainers_in_file($file);
}
--
2.53.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-01 1:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-01 1:07 [PATCH] get_maintainer: add KUnit maintainers for KUnit test files Matteo Croce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®