]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
image.bbclass: print all QA functions exceptions
authorMauro Queiros <maurofrqueiros@gmail.com>
Tue, 7 Feb 2023 22:37:04 +0000 (22:37 +0000)
committerSteve Sakoman <steve@sakoman.com>
Sat, 18 Feb 2023 16:41:49 +0000 (06:41 -1000)
commitc2cdbf0a0b2d27778f55db8fc685e62c2515e805
tree6ebdd5cd6629697a4c59effe547c5e398fe4c92c
parent63cb8eb147088ae171ffa2b6005410742e50e4e6
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)"

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>
(cherry picked from commit 3d85b30d8704d38b86f5b006748cebc74bd2a4fa)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/image.bbclass