diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-12-04 14:01:29 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-04 23:39:38 +0000 |
commit | fdedf94d406ad3da85cb45d43ef87d3fdc8c14d4 (patch) | |
tree | 191c81fa70fd51beb0e7bd3a955eb6ef092f304a /scripts/lib | |
parent | 443c73d638519d6a7ea44d1c0e80d76306687ddc (diff) | |
download | openembedded-core-fdedf94d406ad3da85cb45d43ef87d3fdc8c14d4.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
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/checklayer/cases/common.py | 4 |
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): 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)) |