]> code.ossystems Code Review - openembedded-core.git/commitdiff
yocto-check-layer: Relax README case checks
authorJoshua Watt <JPEWhacker@gmail.com>
Sat, 4 Dec 2021 20:01:29 +0000 (14:01 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Dec 2021 23:39:38 +0000 (23:39 +0000)
Relaxes the case requirements for checks in the README file so that word
like "Maintainer" and "Patch" are allowed

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/checklayer/cases/common.py

index fdfb5d18cdc6336b1ed85a0ba9fa44c47688a668..9f15e05be9b9d942e69b3dffa1ce2d0bfba2b8ba 100644 (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))