summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2017-03-30 21:30:26 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 12:36:44 +0100
commit402ef1c8bd1ea994581a39672f31ab1203a0899d (patch)
tree83a3887195a3ce5caae8c26a949932b1e7572d26
parent9414382f96d4a5d81cca440c75140950ca515aab (diff)
downloadopenembedded-core-402ef1c8bd1ea994581a39672f31ab1203a0899d.tar.gz
openembedded-core-402ef1c8bd1ea994581a39672f31ab1203a0899d.tar.bz2
openembedded-core-402ef1c8bd1ea994581a39672f31ab1203a0899d.zip
yocto-compat-layer.py: Add status for skipped items
If items were skipped because the dependencies could not be found, we want to record this was skipped so we can display it later. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-xscripts/yocto-compat-layer.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py
index 9e74033340..d13d8c039f 100755
--- a/scripts/yocto-compat-layer.py
+++ b/scripts/yocto-compat-layer.py
@@ -107,6 +107,7 @@ def main():
td = {}
results = collections.OrderedDict()
+ results_status = collections.OrderedDict()
logger.info('')
logger.info('Getting initial bitbake variables ...')
@@ -125,19 +126,22 @@ def main():
shutil.copyfile(bblayersconf + '.backup', bblayersconf)
if not add_layer(bblayersconf, layer, layers, logger):
+ results[layer['name']] = None
+ results_status[layer['name']] = 'SKIPPED (Missing dependencies)'
+ layers_tested = layers_tested + 1
continue
result = test_layer_compatibility(td, layer)
results[layer['name']] = result
+ results_status[layer['name']] = 'PASS' if results[layer['name']].wasSuccessful() else 'FAIL'
layers_tested = layers_tested + 1
if layers_tested:
logger.info('')
logger.info('Summary of results:')
logger.info('')
- for layer_name in results:
- logger.info('%s ... %s' % (layer_name, 'PASS' if \
- results[layer_name].wasSuccessful() else 'FAIL'))
+ for layer_name in results_status:
+ logger.info('%s ... %s' % (layer_name, results_status[layer_name]))
cleanup_bblayers(None, None)