aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-12-18 20:31:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-20 12:25:23 +0000
commit0c30a25c3d5f7fb1087dff45e01595329620235f (patch)
tree5f766fb165891a2e0976a5cd0738fac7693ca021
parent0aa5b97f9e0d8941ce342e9f162dd3b19d4b49bb (diff)
downloadopenembedded-core-contrib-0c30a25c3d5f7fb1087dff45e01595329620235f.tar.gz
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 <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index add8009d47..1161e593dc 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()