scripts/yocto-check-layer: Don't abort when layer fails to get signatures
PATCH 1/1 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 <[email protected]>
--- scripts/yocto-check-layer | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
scripts/yocto-check-layer +8 -1
@@ -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):
Signature · 1 line
2.19.0
Targeting sumo too.
Anibal
Quoted 34 lines · Aníbal Limón
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 <[email protected]>--- scripts/yocto-check-layer | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)scripts/yocto-check-layer +6
-1@@ -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 worldsignatures)'
scripts/yocto-check-layer +2
-1+ layers_tested = layers_tested + 1 + continue td['machines'] = args.machines if not add_layer(bblayersconf, layer, dep_layers, logger): --2.19.0