From 13a80b22f28b81a0082d181674295a0f96111f6b Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 6 Apr 2018 17:07:22 +0300 Subject: yocto-check-layer: add a test for correct setting of LAYERSERIES_COMPAT_collection [YOCTO #12661] Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- scripts/lib/checklayer/cases/common.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/lib/checklayer/cases/common.py') 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'])) -- cgit 1.2.3-korg