]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchtest: test_shortlog_length: omit shortlog prefixes
authorTrevor Gamblin <tgamblin@baylibre.com>
Sat, 31 Aug 2024 01:39:03 +0000 (21:39 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Sep 2024 11:27:29 +0000 (12:27 +0100)
commit6e1ddadfe779291cf46fb88fb01769c022b733ac
tree97967fdb2e738beaf58fcb634bf10c1703a70e4a
parentb350239ce1350ed61410431d30e938365d406db1
patchtest: test_shortlog_length: omit shortlog prefixes

In certain cases, the shortlog for a patch would include branch and
'PATCH' tag information even after the repo tag got stripped out,
padding it with data that wouldn't actually be included with a merge.
This caused the patchtest test_shortlog_length test to erroneously
report a failure.

For example, a patch whose shortlog tags were:

[OE-core][master/scarthgap][PATCH]

would leave this behind in the shortlog, along with the actual content:

[master/scarthgap][PATCH]

Add a re.sub() call in the test to fix this by removing all square
bracket pairs that appear at the beginning of the string.

Fixes [YOCTO #15575].

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/tests/test_mbox.py