summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2024-08-31 20:51:19 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-01 12:32:37 +0100
commitbd2159719c08c101a25a5012fc684163135653e6 (patch)
tree3008753a29a47e4e8ce5c8a677e8d286a88ca154
parent69a7baf5b120573a0a55253b5ed219694a4824ea (diff)
downloadpoky-5.1_M3.tar.gz
patchtest: test_non_auh_upgrade: improve parse logic5.1_M3
The AUH email address used for matching was outdated. Fix it so that it correctly identifies emails using the new one. Also make sure to only scan the commit message and not the body, since it's possible (like in this patch) that the user may be editing actual code that checks for AUH-related strings. Fixes [YOCTO #15390]. (From OE-Core rev: 557400648b6f4f31176847f8a068d2e199b7793d) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/patchtest/tests/test_mbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py
index 0e3d055780..cd76e58a71 100644
--- a/meta/lib/patchtest/tests/test_mbox.py
+++ b/meta/lib/patchtest/tests/test_mbox.py
@@ -23,7 +23,7 @@ def headlog():
23 23
24class TestMbox(base.Base): 24class TestMbox(base.Base):
25 25
26 auh_email = 'auh@auh.yoctoproject.org' 26 auh_email = 'auh@yoctoproject.org'
27 27
28 invalids = [pyparsing.Regex("^Upgrade Helper.+"), 28 invalids = [pyparsing.Regex("^Upgrade Helper.+"),
29 pyparsing.Regex(auh_email), 29 pyparsing.Regex(auh_email),
@@ -155,5 +155,5 @@ class TestMbox(base.Base):
155 155
156 def test_non_auh_upgrade(self): 156 def test_non_auh_upgrade(self):
157 for commit in self.commits: 157 for commit in self.commits:
158 if self.auh_email in commit.payload: 158 if self.auh_email in commit.commit_message:
159 self.fail('Invalid author %s. Resend the series with a valid patch author' % self.auh_email, commit=commit) 159 self.fail('Invalid author %s. Resend the series with a valid patch author' % self.auh_email, commit=commit)