From: Ricardo Ungerer Date: Tue, 20 Jan 2026 19:47:21 +0000 (+0000) Subject: yocto-check-layer: Fix README email check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ef78bb6edbe5c4be46d6346f9bf60a01087c4df;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git yocto-check-layer: Fix README email check So far the test_readme have been use of re.match to find an email address in the README file. This only matches if the email address is at the start of the file. This commit changes this to re.search to find email addresses anywhere in the README file. Signed-off-by: Ricardo Ungerer Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index 0114481434..9ea7592ba6 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py @@ -39,7 +39,7 @@ class CommonCheckLayer(OECheckLayerTestCase): self.assertIn('patch', data.lower(), msg="No patching information found in README.") # Check that there is an email address in the README email_regex = re.compile(r"[^@]+@[^@]+") - self.assertTrue(email_regex.match(data), msg="No email address found in README.") + self.assertTrue(email_regex.search(data), msg="No email address found in README.") def find_file_by_name(self, globs): """