diff options
author | Mauro Queiros <maurofrqueiros@gmail.com> | 2023-02-07 22:37:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-09 09:57:24 +0000 |
commit | 50bfef53582e32b932b5762239c665aabc59d9ab (patch) | |
tree | 93c94113a5ddbb627a0da78025d7ebaa1daaaded /meta/classes-recipe | |
parent | d49d6fe004c750c2a9e57add4a3ccdf832ae521f (diff) | |
download | poky-50bfef53582e32b932b5762239c665aabc59d9ab.tar.gz |
image.bbclass: print all QA functions exceptions
For the QA checks in `image.bbclass`, all exceptions
other than `oe.utils.ImageQAFailed` always print the
following generic message:
"Image QA function func_name failed"
This can be very misleading, as it may hide
python syntax errors and other kind of issues that are
hard to detect without more explicit error messages.
This change makes sure that the error message of all
exceptions are displayed.
Before this change:
"Image QA function func_name failed"
After this change:
"Image QA function func_name failed: f-string: empty expression not allowed (<string>, line 13)"
(From OE-Core rev: 3d85b30d8704d38b86f5b006748cebc74bd2a4fa)
Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index ce7d718156..e0dfba4a42 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass | |||
@@ -319,7 +319,7 @@ fakeroot python do_image_qa () { | |||
319 | except oe.utils.ImageQAFailed as e: | 319 | except oe.utils.ImageQAFailed as e: |
320 | qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description) | 320 | qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description) |
321 | except Exception as e: | 321 | except Exception as e: |
322 | qamsg = qamsg + '\tImage QA function %s failed\n' % cmd | 322 | qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (cmd, e) |
323 | 323 | ||
324 | if qamsg: | 324 | if qamsg: |
325 | imgname = d.getVar('IMAGE_NAME') | 325 | imgname = d.getVar('IMAGE_NAME') |