From: Aníbal Limón Date: Tue, 2 Oct 2018 21:43:23 +0000 (-0500) Subject: scripts/yocto-check-layer: Don't abort when layer fails to get signatures X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~16506 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ab558b4fdc77ab54fbb130078c78d43740b4b8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 5a4fd752ca9..9b7e53679ba 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):