yocto-check-layer: Relax README case checks
PATCH 1/1 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 <[email protected]>
--- scripts/lib/checklayer/cases/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/lib/checklayer/cases/common.py +2 -2
@@ -26,8 +26,8 @@ class CommonCheckLayer(OECheckLayerTestCase): data = f.read() self.assertTrue(data, msg="Layer contains a README file but it is empty.") - 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))
Signature · 1 line
2.33.0