summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2021-12-04 14:01:29 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-04 23:39:52 +0000
commit467c21abe432aab8cf985fcad917d9728052f5e9 (patch)
tree645bb1e5e7605301a7951155d2566a3561985b54 /scripts
parent17d1c837a4ea98a6a83d88679cdcc168bb3ee427 (diff)
downloadpoky-467c21abe432aab8cf985fcad917d9728052f5e9.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/checklayer/cases/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py
index fdfb5d18cd..9f15e05be9 100644
--- a/scripts/lib/checklayer/cases/common.py
+++ b/scripts/lib/checklayer/cases/common.py
@@ -31,8 +31,8 @@ class CommonCheckLayer(OECheckLayerTestCase):
31 if re.search('README', data, re.IGNORECASE): 31 if re.search('README', data, re.IGNORECASE):
32 return 32 return
33 33
34 self.assertIn('maintainer', data) 34 self.assertIn('maintainer', data.lower())
35 self.assertIn('patch',data) 35 self.assertIn('patch', data.lower())
36 # Check that there is an email address in the README 36 # Check that there is an email address in the README
37 email_regex = re.compile(r"[^@]+@[^@]+") 37 email_regex = re.compile(r"[^@]+@[^@]+")
38 self.assertTrue(email_regex.match(data)) 38 self.assertTrue(email_regex.match(data))