[PATCH 2/5] patman: Add a test for the 'possible new uclass' check

Simon Glass sjg at chromium.org
Mon Jul 6 03:31:27 CEST 2020


It is quite likely that the number of U-Boot-specific tests in
checkpatch.pl will increase over time. We should have tests for these to
avoid undefined behaviour and bugs being introduced, which might cause
people to ignore the warnings.

Add a simple new class that can generate a patch with a single-line
addition in it. Use that to add a test for one of the checkpatch checks.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/patman/test_checkpatch.py | 77 +++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list