aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/test_checkpatch.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-02-14 15:11:37 -0500
committerTom Rini <trini@konsulko.com>2023-02-14 15:11:37 -0500
commit2bfd217a16978794b43f0a30111b7472fba232b6 (patch)
treedfac18d00740bfc8c29da90e62dfb18765bb2143 /tools/patman/test_checkpatch.py
parentfaac9dee8e0629326dc122f4624fc4897e3f38b0 (diff)
parent9a8a27a76ad7ab51f19c7f019d7cdac8a3f9f3c9 (diff)
Merge tag 'dm-next-valentine' of https://source.denx.de/u-boot/custodians/u-boot-dm into next
Move U-Boot over to the new schema for driver model tags
Diffstat (limited to 'tools/patman/test_checkpatch.py')
-rw-r--r--tools/patman/test_checkpatch.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/patman/test_checkpatch.py b/tools/patman/test_checkpatch.py
index 4c2ab6e590..a8bb364e42 100644
--- a/tools/patman/test_checkpatch.py
+++ b/tools/patman/test_checkpatch.py
@@ -452,6 +452,12 @@ index 0000000..2234c87
self.check_strl("cat");
self.check_strl("cpy");
+ def test_schema(self):
+ """Check for uses of strn(cat|cpy)"""
+ pm = PatchMaker()
+ pm.add_line('arch/sandbox/dts/sandbox.dtsi', '\tu-boot,dm-pre-proper;')
+ self.check_single_message(pm, 'PRE_SCHEMA', 'error')
+
if __name__ == "__main__":
unittest.main()
gitutil.RunTests()