From fdedf94d406ad3da85cb45d43ef87d3fdc8c14d4 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Sat, 4 Dec 2021 14:01:29 -0600 Subject: 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 --- scripts/lib/checklayer/cases/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib') 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)) -- cgit 1.2.3-korg