From: Mauro Queiros Date: Tue, 7 Feb 2023 22:37:04 +0000 (+0000) Subject: image.bbclass: print all QA functions exceptions X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d85b30d8704d38b86f5b006748cebc74bd2a4fa;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 (, line 13)" Signed-off-by: Mauro Queiros Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index ce7d7181563..e0dfba4a421 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass @@ -319,7 +319,7 @@ fakeroot python do_image_qa () { except oe.utils.ImageQAFailed as e: qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (e.name, e.description) except Exception as e: - qamsg = qamsg + '\tImage QA function %s failed\n' % cmd + qamsg = qamsg + '\tImage QA function %s failed: %s\n' % (cmd, e) if qamsg: imgname = d.getVar('IMAGE_NAME')