diff options
-rwxr-xr-x | scripts/yocto-compat-layer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/yocto-compat-layer.py b/scripts/yocto-compat-layer.py index 0d5700b538..30c55a918f 100755 --- a/scripts/yocto-compat-layer.py +++ b/scripts/yocto-compat-layer.py | |||
@@ -178,16 +178,19 @@ def main(): | |||
178 | results_status[layer['name']] = 'PASS' if results[layer['name']].wasSuccessful() else 'FAIL' | 178 | results_status[layer['name']] = 'PASS' if results[layer['name']].wasSuccessful() else 'FAIL' |
179 | layers_tested = layers_tested + 1 | 179 | layers_tested = layers_tested + 1 |
180 | 180 | ||
181 | ret = 0 | ||
181 | if layers_tested: | 182 | if layers_tested: |
182 | logger.info('') | 183 | logger.info('') |
183 | logger.info('Summary of results:') | 184 | logger.info('Summary of results:') |
184 | logger.info('') | 185 | logger.info('') |
185 | for layer_name in results_status: | 186 | for layer_name in results_status: |
186 | logger.info('%s ... %s' % (layer_name, results_status[layer_name])) | 187 | logger.info('%s ... %s' % (layer_name, results_status[layer_name])) |
188 | if not results[layer_name].wasSuccessful(): | ||
189 | ret = 2 # ret = 1 used for initialization errors | ||
187 | 190 | ||
188 | cleanup_bblayers(None, None) | 191 | cleanup_bblayers(None, None) |
189 | 192 | ||
190 | return 0 | 193 | return ret |
191 | 194 | ||
192 | if __name__ == '__main__': | 195 | if __name__ == '__main__': |
193 | try: | 196 | try: |