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>
This commit is contained in:
Maxim Cournoyer 2022-12-19 17:32:40 -05:00 committed by Simon Glass
parent 1c77598402
commit 648d8186dd

View File

@ -211,7 +211,7 @@ def check_patch(fname, verbose=False, show_types=False, use_tree=False):
stdout: Full output of checkpatch stdout: Full output of checkpatch
""" """
chk = find_check_patch() chk = find_check_patch()
args = [chk] args = [chk, '--u-boot', '--strict']
if not use_tree: if not use_tree:
args.append('--no-tree') args.append('--no-tree')
if show_types: if show_types: