From: Trevor Gamblin Date: Sun, 1 Sep 2024 00:51:19 +0000 (-0400) Subject: patchtest: test_non_auh_upgrade: improve parse logic X-Git-Tag: yocto-5.1~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=557400648b6f4f31176847f8a068d2e199b7793d;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git patchtest: test_non_auh_upgrade: improve parse logic 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]. Signed-off-by: Trevor Gamblin Signed-off-by: Richard Purdie --- diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py index 0e3d055780a..cd76e58a717 100644 --- a/meta/lib/patchtest/tests/test_mbox.py +++ b/meta/lib/patchtest/tests/test_mbox.py @@ -23,7 +23,7 @@ def headlog(): class TestMbox(base.Base): - auh_email = 'auh@auh.yoctoproject.org' + auh_email = 'auh@yoctoproject.org' invalids = [pyparsing.Regex("^Upgrade Helper.+"), pyparsing.Regex(auh_email), @@ -155,5 +155,5 @@ class TestMbox(base.Base): def test_non_auh_upgrade(self): for commit in self.commits: - if self.auh_email in commit.payload: + if self.auh_email in commit.commit_message: self.fail('Invalid author %s. Resend the series with a valid patch author' % self.auh_email, commit=commit)