]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
testimage: include traceback when loading a test fails
authorStefan Stanacar <stefanx.stanacar@intel.com>
Wed, 18 Dec 2013 18:31:55 +0000 (20:31 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Dec 2013 12:25:23 +0000 (12:25 +0000)
Makes it much easier to figure out where a syntax error is.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/testimage.bbclass

index add8009d47aafdfb1aeba633ed453bb89bbd9a2f..1161e593dcb48ba5df6b18fc774d020c9d76a8ff 100644 (file)
@@ -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()