]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 20 Nov 2023 18:40:39 +0000 (08:40 -1000)
commitd1871afcec769b6503852adf6217460897ecf301
tree67a3f446bb2008a64fe9657bbeecf53589f62137
parent78e76e2e4f71485a632f1c1ae83032e0e9341a9e
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>
(cherry picked from commit 8e1bda0eb225ada22fdf5990edfec512be1d6629)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/patchtest/tests/test_metadata.py