diff options
| author | Maxim Cournoyer <[email protected]> | 2022-12-19 17:32:40 -0500 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2023-01-05 19:21:57 -0700 |
| commit | 648d8186dd7f9c444fb07f355090d275dcdd4de4 (patch) | |
| tree | 29b07954f7b19102c43cbd103d501a2c880797d5 | |
| parent | 1c77598402890ef148c5e114bb5a3a475305ced8 (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 <[email protected]>
Signed-off-by: Maxim Cournoyer <[email protected]>
| -rw-r--r-- | tools/patman/checkpatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py index d1b902dd962..012c0d895cb 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: |
