summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Queiros <maurofrqueiros@gmail.com>2023-02-07 22:37:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 14:59:10 +0000
commit9ab9e48d36578b599b84dc24dca4385b3876b2bd (patch)
tree67bc365921cf0765d8e2ba1978fc447b58f74476
parenta2147d6d2751caab170193b8db44876c38877e75 (diff)
downloadpoky-9ab9e48d36578b599b84dc24dca4385b3876b2bd.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: c4e3b86f2bcb2b445efc72bd8e06b1b89d88daa2) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/image.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index a241543ff2..fbf7206d04 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -311,7 +311,7 @@ fakeroot python do_image_qa () {
311 except oe.utils.ImageQAFailed as e: 311 except oe.utils.ImageQAFailed as e:
312 qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description) 312 qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description)
313 except Exception as e: 313 except Exception as e:
314 qamsg = qamsg + '\tImage QA function %s failed\n' % cmd 314 qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (cmd, e)
315 315
316 if qamsg: 316 if qamsg:
317 imgname = d.getVar('IMAGE_NAME') 317 imgname = d.getVar('IMAGE_NAME')