diff options
Diffstat (limited to 'scripts/lib/checklayer/cases')
| -rw-r--r-- | scripts/lib/checklayer/cases/bsp.py | 2 | ||||
| -rw-r--r-- | scripts/lib/checklayer/cases/common.py | 3 | ||||
| -rw-r--r-- | scripts/lib/checklayer/cases/distro.py | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/checklayer/cases/bsp.py b/scripts/lib/checklayer/cases/bsp.py index a80a5844da..b76163fb56 100644 --- a/scripts/lib/checklayer/cases/bsp.py +++ b/scripts/lib/checklayer/cases/bsp.py | |||
| @@ -11,7 +11,7 @@ from checklayer.case import OECheckLayerTestCase | |||
| 11 | class BSPCheckLayer(OECheckLayerTestCase): | 11 | class BSPCheckLayer(OECheckLayerTestCase): |
| 12 | @classmethod | 12 | @classmethod |
| 13 | def setUpClass(self): | 13 | def setUpClass(self): |
| 14 | if self.tc.layer['type'] != LayerType.BSP: | 14 | if self.tc.layer['type'] not in (LayerType.BSP, LayerType.CORE): |
| 15 | raise unittest.SkipTest("BSPCheckLayer: Layer %s isn't BSP one." %\ | 15 | raise unittest.SkipTest("BSPCheckLayer: Layer %s isn't BSP one." %\ |
| 16 | self.tc.layer['name']) | 16 | self.tc.layer['name']) |
| 17 | 17 | ||
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index 491a13953c..722d3cf638 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py | |||
| @@ -12,6 +12,9 @@ from checklayer.case import OECheckLayerTestCase | |||
| 12 | 12 | ||
| 13 | class CommonCheckLayer(OECheckLayerTestCase): | 13 | class CommonCheckLayer(OECheckLayerTestCase): |
| 14 | def test_readme(self): | 14 | def test_readme(self): |
| 15 | if self.tc.layer['type'] == LayerType.CORE: | ||
| 16 | raise unittest.SkipTest("Core layer's README is top level") | ||
| 17 | |||
| 15 | # The top-level README file may have a suffix (like README.rst or README.txt). | 18 | # The top-level README file may have a suffix (like README.rst or README.txt). |
| 16 | readme_files = glob.glob(os.path.join(self.tc.layer['path'], '[Rr][Ee][Aa][Dd][Mm][Ee]*')) | 19 | readme_files = glob.glob(os.path.join(self.tc.layer['path'], '[Rr][Ee][Aa][Dd][Mm][Ee]*')) |
| 17 | self.assertTrue(len(readme_files) > 0, | 20 | self.assertTrue(len(readme_files) > 0, |
diff --git a/scripts/lib/checklayer/cases/distro.py b/scripts/lib/checklayer/cases/distro.py index f0bee5493c..a35332451c 100644 --- a/scripts/lib/checklayer/cases/distro.py +++ b/scripts/lib/checklayer/cases/distro.py | |||
| @@ -11,7 +11,7 @@ from checklayer.case import OECheckLayerTestCase | |||
| 11 | class DistroCheckLayer(OECheckLayerTestCase): | 11 | class DistroCheckLayer(OECheckLayerTestCase): |
| 12 | @classmethod | 12 | @classmethod |
| 13 | def setUpClass(self): | 13 | def setUpClass(self): |
| 14 | if self.tc.layer['type'] != LayerType.DISTRO: | 14 | if self.tc.layer['type'] not in (LayerType.DISTRO, LayerType.CORE): |
| 15 | raise unittest.SkipTest("DistroCheckLayer: Layer %s isn't Distro one." %\ | 15 | raise unittest.SkipTest("DistroCheckLayer: Layer %s isn't Distro one." %\ |
| 16 | self.tc.layer['name']) | 16 | self.tc.layer['name']) |
| 17 | 17 | ||
