summaryrefslogtreecommitdiffstats
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:26:30 +0000
commit963b69b5f3eb6dd1ff4052240eac16da6a892e4e (patch)
tree50c1103adf5e0695676b72fa5632502db7f1efc8
parentb24f2172a5e1ac93ea1c378b6989f8f573ccd154 (diff)
downloadast2050-yocto-poky-963b69b5f3eb6dd1ff4052240eac16da6a892e4e.zip
ast2050-yocto-poky-963b69b5f3eb6dd1ff4052240eac16da6a892e4e.tar.gz
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 <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 add8009..1161e59 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()
OpenPOWER on IntegriCloud