diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2018-10-02 16:43:23 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-04 14:21:41 +0100 |
commit | 32874084cefbe22f3294625859c5335096c670f2 (patch) | |
tree | 81032d8f601299498ab2147b53652e560a21120a /scripts | |
parent | 68bf128e901e89d5b49a28b15d5083b2bf6b536f (diff) | |
download | poky-32874084cefbe22f3294625859c5335096c670f2.tar.gz |
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.
(From OE-Core rev: c8ab558b4fdc77ab54fbb130078c78d43740b4b8)
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/yocto-check-layer | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 5a4fd752ca..9b7e53679b 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer | |||
@@ -169,7 +169,14 @@ def main(): | |||
169 | td['bbvars'] = get_bb_vars() | 169 | td['bbvars'] = get_bb_vars() |
170 | logger.info('Getting initial signatures ...') | 170 | logger.info('Getting initial signatures ...') |
171 | td['builddir'] = builddir | 171 | td['builddir'] = builddir |
172 | td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) | 172 | try: |
173 | td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) | ||
174 | except RuntimeError as e: | ||
175 | logger.info(str(e)) | ||
176 | results[layer['name']] = None | ||
177 | results_status[layer['name']] = 'FAIL (Generating world signatures)' | ||
178 | layers_tested = layers_tested + 1 | ||
179 | continue | ||
173 | td['machines'] = args.machines | 180 | td['machines'] = args.machines |
174 | 181 | ||
175 | if not add_layer(bblayersconf, layer, dep_layers, logger): | 182 | if not add_layer(bblayersconf, layer, dep_layers, logger): |