testimage: include traceback when loading a test fails
PATCH 1/1 testimage: include traceback when loading a test fails
Makes it much easier to figure out where a syntax error is.
Signed-off-by Stefan Stanacar <[email protected]>
--- meta/classes/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/testimage.bbclass +2 -1
@@ -122,7 +122,8 @@ def testimage_main(d): try: loadTests(tc) except Exception as e: - bb.fatal("Loading tests failed:\n %s" % e) + import traceback + bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) target.deploy()
Signature · 1 line
1.8.3.1