summaryrefslogtreecommitdiffstats
path: root/scripts/yocto-compat-layer.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-03-20 17:33:26 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:22 +0000
commitf57eac5dc9253ea2bf769011b8be29d3fff9fdd1 (patch)
tree47c5d279fa2402eded65546e491ce1bbdb5808f4 /scripts/yocto-compat-layer.py
parent4703aa2b3ba25f463826f9f6eb38b69fa649b572 (diff)
downloadpoky-f57eac5dc9253ea2bf769011b8be29d3fff9fdd1.tar.gz
scripts/yocto-compat-layer.py: Handle layer dependencies when test
If some layer depends on other tries to find layer dependency, if the layer dependency isn't found avoid to test the layer and notice the user. (From OE-Core rev: 1e7cf9bb71521f1632dd2e6b01fe7fcc95732983) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/yocto-compat-layer.py')
-rwxr-xr-xscripts/yocto-compat-layer.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py
index b4de84a0a5..9e74033340 100755
--- a/scripts/yocto-compat-layer.py
+++ b/scripts/yocto-compat-layer.py
@@ -116,6 +116,7 @@ def main():
116 td['sigs'] = get_signatures(td['builddir']) 116 td['sigs'] = get_signatures(td['builddir'])
117 logger.info('') 117 logger.info('')
118 118
119 layers_tested = 0
119 for layer in layers: 120 for layer in layers:
120 if layer['type'] == LayerType.ERROR_NO_LAYER_CONF or \ 121 if layer['type'] == LayerType.ERROR_NO_LAYER_CONF or \
121 layer['type'] == LayerType.ERROR_BSP_DISTRO: 122 layer['type'] == LayerType.ERROR_BSP_DISTRO:
@@ -123,16 +124,20 @@ def main():
123 124
124 shutil.copyfile(bblayersconf + '.backup', bblayersconf) 125 shutil.copyfile(bblayersconf + '.backup', bblayersconf)
125 126
126 add_layer(bblayersconf, layer) 127 if not add_layer(bblayersconf, layer, layers, logger):
128 continue
129
127 result = test_layer_compatibility(td, layer) 130 result = test_layer_compatibility(td, layer)
128 results[layer['name']] = result 131 results[layer['name']] = result
129 132 layers_tested = layers_tested + 1
130 logger.info('') 133
131 logger.info('Summary of results:') 134 if layers_tested:
132 logger.info('') 135 logger.info('')
133 for layer_name in results: 136 logger.info('Summary of results:')
134 logger.info('%s ... %s' % (layer_name, 'PASS' if \ 137 logger.info('')
135 results[layer_name].wasSuccessful() else 'FAIL')) 138 for layer_name in results:
139 logger.info('%s ... %s' % (layer_name, 'PASS' if \
140 results[layer_name].wasSuccessful() else 'FAIL'))
136 141
137 cleanup_bblayers(None, None) 142 cleanup_bblayers(None, None)
138 143