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

(From OE-Core rev: fdedf94d406ad3da85cb45d43ef87d3fdc8c14d4)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Watt 2021-12-04 14:01:29 -06:00 committed by Richard Purdie
parent 17d1c837a4
commit 467c21abe4

View File

@ -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))