[oe-commits] [openembedded-core] 01/07: scripts/yocto-check-layer: Don't abort when layer fails to get signatures

git at git.openembedded.org git at git.openembedded.org
Wed Oct 3 21:45:03 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c8ab558b4fdc77ab54fbb130078c78d43740b4b8
Author: Aníbal Limón <anibal.limon at linaro.org>
AuthorDate: Tue Oct 2 16:43:23 2018 -0500

    scripts/yocto-check-layer: Don't abort when layer fails to get signatures
    
    When execute in multiple layers like meta-openembedded the execution is
    aborted when some sublayer fails to get world signatures, so mark it as
    an error and continue the execution in the remaining sublayers.
    
    Signed-off-by: Aníbal Limón <anibal.limon at linaro.org>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/yocto-check-layer | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index 5a4fd75..9b7e536 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -169,7 +169,14 @@ def main():
         td['bbvars'] = get_bb_vars()
         logger.info('Getting initial signatures ...')
         td['builddir'] = builddir
-        td['sigs'], td['tunetasks'] = get_signatures(td['builddir'])
+        try:
+            td['sigs'], td['tunetasks'] = get_signatures(td['builddir'])
+        except RuntimeError as e:
+            logger.info(str(e))
+            results[layer['name']] = None
+            results_status[layer['name']] = 'FAIL (Generating world signatures)'
+            layers_tested = layers_tested + 1
+            continue
         td['machines'] = args.machines
 
         if not add_layer(bblayersconf, layer, dep_layers, logger):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list