aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-06-27 17:33:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-06 14:38:06 +0100
commite7fe215f50a1b75771f33fffdda529a95c026d3f (patch)
tree602e3341034d306d34155db68a9e42b342b66912 /scripts/lib
parente8416554dfc9d4196543279a4845f6c0671f3e5c (diff)
downloadopenembedded-core-contrib-e7fe215f50a1b75771f33fffdda529a95c026d3f.tar.gz
yocto-compat-layer.py: apply test_signatures to all layers
Software layers were previously allowed to change signatures, but that's not desired for those layers either. The rule that a layer which is "Yocto Compatible 2.0" must not change signatures unless explicitly requested holds for all kinds of layers. However, as this is something that software layers might not be able to do right away, testing for signature changes in software layers can be disabled. It's on by default, as that was Richard's recommendation. Whether that should change needs further discussion as part of finalizing "Yocto Compatible 2.0". As it might still change, the tool now has both a with/without parameter so that users of the tool can choose the desired behavior without being affected by future changes to the default. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/compatlayer/cases/common.py5
-rw-r--r--scripts/lib/compatlayer/context.py3
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/lib/compatlayer/cases/common.py b/scripts/lib/compatlayer/cases/common.py
index 2dfcbb1c32..a1cdbab51e 100644
--- a/scripts/lib/compatlayer/cases/common.py
+++ b/scripts/lib/compatlayer/cases/common.py
@@ -27,8 +27,9 @@ class CommonCompatLayer(OECompatLayerTestCase):
'bitbake -e')
def test_signatures(self):
- if self.tc.layer['type'] == LayerType.SOFTWARE:
- raise unittest.SkipTest("Layer %s isn't BSP or DISTRO one." \
+ if self.tc.layer['type'] == LayerType.SOFTWARE and \
+ not self.tc.test_software_layer_signatures:
+ raise unittest.SkipTest("Not testing for signature changes in a software layer %s." \
% self.tc.layer['name'])
# task -> (old signature, new signature)
diff --git a/scripts/lib/compatlayer/context.py b/scripts/lib/compatlayer/context.py
index 4932238798..7811d4ac20 100644
--- a/scripts/lib/compatlayer/context.py
+++ b/scripts/lib/compatlayer/context.py
@@ -9,6 +9,7 @@ import re
from oeqa.core.context import OETestContext
class CompatLayerTestContext(OETestContext):
- def __init__(self, td=None, logger=None, layer=None):
+ def __init__(self, td=None, logger=None, layer=None, test_software_layer_signatures=True):
super(CompatLayerTestContext, self).__init__(td, logger)
self.layer = layer
+ self.test_software_layer_signatures = test_software_layer_signatures