diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2019-08-28 14:22:46 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-30 17:10:28 +0100 |
commit | b4932a18ab76c8b671f22ca8ad528049f0dd30b4 (patch) | |
tree | c6e86840bd010ac9cfdb0fb091da598705f12810 | |
parent | a0542cf593d0fc0d0b1cdabdd7d67046797a5101 (diff) | |
download | poky-b4932a18ab76c8b671f22ca8ad528049f0dd30b4.tar.gz |
yocto-check-layer: Allow any case for README file detection
It's become more commone for files to be named "readme" or "Readme" on github servers
in recent time. So adjust the scanning to allow any mix of case.
(From OE-Core rev: afe46eca15b6ddfa15c75cb7b707d6dd9aae3eae)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/checklayer/cases/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index 8ffe028b39..b82304e361 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py | |||
@@ -12,7 +12,7 @@ from checklayer.case import OECheckLayerTestCase | |||
12 | class CommonCheckLayer(OECheckLayerTestCase): | 12 | class CommonCheckLayer(OECheckLayerTestCase): |
13 | def test_readme(self): | 13 | def test_readme(self): |
14 | # The top-level README file may have a suffix (like README.rst or README.txt). | 14 | # The top-level README file may have a suffix (like README.rst or README.txt). |
15 | readme_files = glob.glob(os.path.join(self.tc.layer['path'], 'README*')) | 15 | readme_files = glob.glob(os.path.join(self.tc.layer['path'], '[Rr][Ee][Aa][Dd][Mm][Ee]*')) |
16 | self.assertTrue(len(readme_files) > 0, | 16 | self.assertTrue(len(readme_files) > 0, |
17 | msg="Layer doesn't contains README file.") | 17 | msg="Layer doesn't contains README file.") |
18 | 18 | ||