]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchtest: reject Upstream-Status after scissors
authorLuka Krstic <lukakrstic031@gmail.com>
Thu, 18 Dec 2025 09:11:38 +0000 (10:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Dec 2025 09:08:53 +0000 (09:08 +0000)
commit2156ef9e6defa3ec9087789fcea25fb4fee7b83c
treeb0951ae7ecc328943d795635b79072f0cdc7c534
parentcf60072cb7809018d2226b663a24eb2bab439ac6
patchtest: reject Upstream-Status after scissors

Upstream-Status must be placed in the patch header before the
scissors line. patchtest currently accepts tags that appear
only after the scissors, which means the tag is lost when the
patch is refreshed by git or devtool.

Update test_upstream_status_presence_format() to distinguish
between tags in the header and tags after the scissors, and
reject the latter.

Fixes: [YOCTO #15940]
Signed-off-by: Luka Krstic <lukakrstic031@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/tests/test_patch.py