diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2018-04-06 17:07:22 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-09 12:10:47 +0100 |
commit | 13a80b22f28b81a0082d181674295a0f96111f6b (patch) | |
tree | e110e4d902f1efe621a9d03fd5851f6397797031 /scripts/lib/checklayer/cases | |
parent | e55e6df4f1434458cdfa0e2d3610b48119e5a782 (diff) | |
download | openembedded-core-13a80b22f28b81a0082d181674295a0f96111f6b.tar.gz openembedded-core-13a80b22f28b81a0082d181674295a0f96111f6b.tar.bz2 openembedded-core-13a80b22f28b81a0082d181674295a0f96111f6b.zip |
yocto-check-layer: add a test for correct setting of LAYERSERIES_COMPAT_collection
[YOCTO #12661]
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/checklayer/cases')
-rw-r--r-- | scripts/lib/checklayer/cases/common.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): msg = compare_signatures(self.td['sigs'], curr_sigs) if msg is not None: self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg)) + + def test_layerseries_compat(self): + for collection_name, collection_data in self.tc.layer['collections'].items(): + self.assertTrue(collection_data['compat'], "Collection %s from layer %s does not set compatible oe-core versions via LAYERSERIES_COMPAT_collection." \ + % (collection_name, self.tc.layer['name'])) |