aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman/func_test.py
diff options
context:
space:
mode:
authorSimon Glass2023-07-19 17:48:27 -0600
committerSimon Glass2023-07-24 09:34:10 -0600
commit1b21842eab660ab1f80b89057abab99473b3bb5a (patch)
tree9dbed46d2fe2543ec7bb6f320619f576b20ec385 /tools/buildman/func_test.py
parent9a7cc8121f974582d3f07201b3e119e0d7c91559 (diff)
buildman: Add an option to check maintainers
Rather than using the -R option to get this report as a side effect, add a dedicated option for it. Disable CI for now as there are some missing maintainers, unfortunately. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/func_test.py')
-rw-r--r--tools/buildman/func_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py
index bb9eea335d1..7f3d54cc762 100644
--- a/tools/buildman/func_test.py
+++ b/tools/buildman/func_test.py
@@ -976,7 +976,8 @@ config TARGET_OTHER
endif
''')
tools.write_file(kc_file, orig_kc_data + extra)
- params_list, warnings = self._boards.build_board_list(config_dir, src)
+ params_list, warnings = self._boards.build_board_list(config_dir, src,
+ warn_targets=True)
self.assertEquals(2, len(params_list))
self.assertEquals(
['WARNING: board2_defconfig: Duplicate TARGET_xxx: board2 and other'],
@@ -986,7 +987,8 @@ endif
lines = [b'' if line == b'config TARGET_BOARD2\n' else line
for line in orig_kc_data.splitlines(keepends=True)]
tools.write_file(kc_file, b''.join(lines))
- params_list, warnings = self._boards.build_board_list(config_dir, src)
+ params_list, warnings = self._boards.build_board_list(config_dir, src,
+ warn_targets=True)
self.assertEquals(2, len(params_list))
self.assertEquals(
['WARNING: board2_defconfig: No TARGET_BOARD2 enabled'],