summaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-19 17:32:40 -0500
committerSimon Glass <sjg@chromium.org>2023-01-05 19:21:57 -0700
commit648d8186dd7f9c444fb07f355090d275dcdd4de4 (patch)
tree29b07954f7b19102c43cbd103d501a2c880797d5 /tools/patman
parent1c77598402890ef148c5e114bb5a3a475305ced8 (diff)
patman: invoke the checkpatch.pl script with '--u-boot' and '--strict'
This resolves 10 out of 11 test failures seen when running './patman test' from the 'tools/patman' subdirectory. This was caused by the .checkpatch.conf configuration file at the root of the project not being picked up. Make the test suite of patman independent from it by always invoking the checkpatch.pl script with the minimally required arguments for the test suite to pass. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/checkpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
index d1b902dd96..012c0d895c 100644
--- a/tools/patman/checkpatch.py
+++ b/tools/patman/checkpatch.py
@@ -211,7 +211,7 @@ def check_patch(fname, verbose=False, show_types=False, use_tree=False):
stdout: Full output of checkpatch
"""
chk = find_check_patch()
- args = [chk]
+ args = [chk, '--u-boot', '--strict']
if not use_tree:
args.append('--no-tree')
if show_types: