MAINTAINERS: add 2 new keys: tags, tests
Add two new keys: tags, tests. tags for aligning with what we use in tests and samples and tests to associate areas and components with tests. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e86b44751c
commit
cf640fef61
|
@ -191,6 +191,8 @@ class Maintainers:
|
||||||
area.collaborators = area_dict.get("collaborators", [])
|
area.collaborators = area_dict.get("collaborators", [])
|
||||||
area.inform = area_dict.get("inform", [])
|
area.inform = area_dict.get("inform", [])
|
||||||
area.labels = area_dict.get("labels", [])
|
area.labels = area_dict.get("labels", [])
|
||||||
|
area.tests = area_dict.get("tests", [])
|
||||||
|
area.tags = area_dict.get("tags", [])
|
||||||
area.description = area_dict.get("description")
|
area.description = area_dict.get("description")
|
||||||
|
|
||||||
# area._match_fn(path) tests if the path matches files and/or
|
# area._match_fn(path) tests if the path matches files and/or
|
||||||
|
@ -403,12 +405,16 @@ def _print_areas(areas):
|
||||||
\tcollaborators: {}
|
\tcollaborators: {}
|
||||||
\tinform: {}
|
\tinform: {}
|
||||||
\tlabels: {}
|
\tlabels: {}
|
||||||
|
\ttests: {}
|
||||||
|
\ttags: {}
|
||||||
\tdescription: {}""".format(area.name,
|
\tdescription: {}""".format(area.name,
|
||||||
area.status,
|
area.status,
|
||||||
", ".join(area.maintainers),
|
", ".join(area.maintainers),
|
||||||
", ".join(area.collaborators),
|
", ".join(area.collaborators),
|
||||||
", ".join(area.inform),
|
", ".join(area.inform),
|
||||||
", ".join(area.labels),
|
", ".join(area.labels),
|
||||||
|
", ".join(area.tests),
|
||||||
|
", ".join(area.tags),
|
||||||
area.description or ""))
|
area.description or ""))
|
||||||
|
|
||||||
|
|
||||||
|
@ -479,7 +485,7 @@ def _check_maintainers(maints_path, yaml):
|
||||||
|
|
||||||
ok_keys = {"status", "maintainers", "collaborators", "inform", "files",
|
ok_keys = {"status", "maintainers", "collaborators", "inform", "files",
|
||||||
"files-exclude", "files-regex", "files-regex-exclude",
|
"files-exclude", "files-regex", "files-regex-exclude",
|
||||||
"labels", "description"}
|
"labels", "description", "tests", "tags"}
|
||||||
|
|
||||||
ok_status = {"maintained", "odd fixes", "unmaintained", "obsolete"}
|
ok_status = {"maintained", "odd fixes", "unmaintained", "obsolete"}
|
||||||
ok_status_s = ", ".join('"' + s + '"' for s in ok_status) # For messages
|
ok_status_s = ", ".join('"' + s + '"' for s in ok_status) # For messages
|
||||||
|
@ -504,7 +510,7 @@ def _check_maintainers(maints_path, yaml):
|
||||||
"for area '{}'".format(area_name))
|
"for area '{}'".format(area_name))
|
||||||
|
|
||||||
for list_name in "maintainers", "collaborators", "inform", "files", \
|
for list_name in "maintainers", "collaborators", "inform", "files", \
|
||||||
"files-regex", "labels":
|
"files-regex", "labels", "tags", "tests":
|
||||||
if list_name in area_dict:
|
if list_name in area_dict:
|
||||||
lst = area_dict[list_name]
|
lst = area_dict[list_name]
|
||||||
if not (isinstance(lst, list) and
|
if not (isinstance(lst, list) and
|
||||||
|
|
Loading…
Reference in a new issue