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(-) diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index 52c786f77b..8bdc5ce20f 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py @@ -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)) -- 2.33.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#159180): https://lists.openembedded.org/g/openembedded-core/message/159180 Mute This Topic: https://lists.openembedded.org/mt/87505624/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
