From: Joshua Watt Date: Sat, 4 Dec 2021 20:01:29 +0000 (-0600) Subject: yocto-check-layer: Relax README case checks X-Git-Tag: uninative-3.5~642 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=fdedf94d406ad3da85cb45d43ef87d3fdc8c14d4;p=openembedded-core.git yocto-check-layer: Relax README case checks Relaxes the case requirements for checks in the README file so that word like "Maintainer" and "Patch" are allowed Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index fdfb5d18cd..9f15e05be9 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py @@ -31,8 +31,8 @@ class CommonCheckLayer(OECheckLayerTestCase): if re.search('README', data, re.IGNORECASE): return - self.assertIn('maintainer', data) - self.assertIn('patch',data) + self.assertIn('maintainer', data.lower()) + self.assertIn('patch', data.lower()) # Check that there is an email address in the README email_regex = re.compile(r"[^@]+@[^@]+") self.assertTrue(email_regex.match(data))