Skip to contentSkip to conversation

yocto-check-layer: Relax README case checks

PATCH New Joshua Watt 1 participant 1 message Dec 4, 2021

lore
Share & tools
lore
#0 lore raw

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

---
 scripts/lib/checklayer/cases/common.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/lib/checklayer/cases/common.py +2 -2
index 52c786f77b..8bdc5ce20f 100644
@@ -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