diff options
-rw-r--r-- | scripts/lib/checklayer/__init__.py | 2 | ||||
-rw-r--r-- | scripts/lib/checklayer/cases/common.py | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index 288c457822..2618416fab 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py | |||
@@ -56,9 +56,11 @@ def _get_layer_collections(layer_path, lconf=None, data=None): | |||
56 | priority = ldata.getVar('BBFILE_PRIORITY_%s' % name) | 56 | priority = ldata.getVar('BBFILE_PRIORITY_%s' % name) |
57 | pattern = ldata.getVar('BBFILE_PATTERN_%s' % name) | 57 | pattern = ldata.getVar('BBFILE_PATTERN_%s' % name) |
58 | depends = ldata.getVar('LAYERDEPENDS_%s' % name) | 58 | depends = ldata.getVar('LAYERDEPENDS_%s' % name) |
59 | compat = ldata.getVar('LAYERSERIES_COMPAT_%s' % name) | ||
59 | collections[name]['priority'] = priority | 60 | collections[name]['priority'] = priority |
60 | collections[name]['pattern'] = pattern | 61 | collections[name]['pattern'] = pattern |
61 | collections[name]['depends'] = depends | 62 | collections[name]['depends'] = depends |
63 | collections[name]['compat'] = compat | ||
62 | 64 | ||
63 | return collections | 65 | return collections |
64 | 66 | ||
diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index a13c1088f0..1bef61b048 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py | |||
@@ -51,3 +51,8 @@ class CommonCheckLayer(OECheckLayerTestCase): | |||
51 | msg = compare_signatures(self.td['sigs'], curr_sigs) | 51 | msg = compare_signatures(self.td['sigs'], curr_sigs) |
52 | if msg is not None: | 52 | if msg is not None: |
53 | self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg)) | 53 | self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg)) |
54 | |||
55 | def test_layerseries_compat(self): | ||
56 | for collection_name, collection_data in self.tc.layer['collections'].items(): | ||
57 | self.assertTrue(collection_data['compat'], "Collection %s from layer %s does not set compatible oe-core versions via LAYERSERIES_COMPAT_collection." \ | ||
58 | % (collection_name, self.tc.layer['name'])) | ||