]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchtest: don't match BitBake python expansion as GitHub username
authorGyorgy Sarvari <skandigraun@gmail.com>
Sun, 14 Sep 2025 17:47:09 +0000 (19:47 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Sep 2025 10:08:20 +0000 (11:08 +0100)
commit6aa8eeadbb626bb5e5459ac2caf73b8fb0f2b936
tree92434e76fc3e339f46994bd18c13df0c8b2fa6b1
parent67f8670c538eb4ca27600ed5479759454f87e34c
patchtest: don't match BitBake python expansion as GitHub username

BitBake's Python expansion syntax looks very similar to GitHub usernames:
${@foo} - which triggers a false alarm from patchtest.

This patch adds a negative lookahead to the GitHub username matching pattern:
only match in case the pattern doesn't start with "${" characters.

Also add a test for it.

Signed-off-by: Gyorgy Sarvari <skandigraun@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/patchtest_patterns.py
meta/lib/patchtest/selftest/files/TestMbox.test_commit_message_user_tags.1.pass [moved from meta/lib/patchtest/selftest/files/TestMbox.test_commit_message_user_tags.pass with 100% similarity]
meta/lib/patchtest/selftest/files/TestMbox.test_commit_message_user_tags.2.pass [new file with mode: 0644]