From 963b69b5f3eb6dd1ff4052240eac16da6a892e4e Mon Sep 17 00:00:00 2001 From: Stefan Stanacar Date: Wed, 18 Dec 2013 20:31:55 +0200 Subject: testimage: include traceback when loading a test fails Makes it much easier to figure out where a syntax error is. (From OE-Core rev: 0c30a25c3d5f7fb1087dff45e01595329620235f) Signed-off-by: Stefan Stanacar Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/classes/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes/testimage.bbclass') diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index add8009d47a..1161e593dcb 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -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() -- cgit 1.2.3-korg