[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5485/8267] yocto-compat-layer.py: Add status for skipped items
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5485/8267] yocto-compat-layer.py: Add status for skipped items
- Date: Sun, 17 Dec 2017 03:30:22 +0000 (UTC)
commit 2a04cb8d22c92156ab97ac10f81bd065a733a2a4
Author: Mark Hatle <mark hatle windriver com>
Date: Thu Mar 30 21:30:26 2017 -0500
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.
(From OE-Core rev: 402ef1c8bd1ea994581a39672f31ab1203a0899d)
Signed-off-by: Mark Hatle <mark hatle windriver com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/yocto-compat-layer.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py
index 9e74033..d13d8c0 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]