]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchtest: rework license checksum tests
authorTrevor Gamblin <tgamblin@baylibre.com>
Mon, 6 Nov 2023 15:34:12 +0000 (10:34 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Nov 2023 10:58:57 +0000 (10:58 +0000)
commit8e1bda0eb225ada22fdf5990edfec512be1d6629
tree76a069ec1ff2d50e0de9c3f169eacd72889872fa
parent9f8d3438530abceabdfd03d2ff2157bb79e4e034
patchtest: rework license checksum tests

Remove the pretest_lic_files_chksum_modified_not_mentioned test entirely
and use pyparsing in test_lic_files_chksum_modified_not_mentioned to
scan the patches for lines starting with either "+LIC_FILES_CHKSUM" or
"-LIC_FILES_CHKSUM".  If either is found but no "License-Update" tag is
present in the commit, fail the test.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/patchtest/tests/test_metadata.py