diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-12-18 20:31:55 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-20 12:25:23 +0000 |
commit | 0c30a25c3d5f7fb1087dff45e01595329620235f (patch) | |
tree | 5f766fb165891a2e0976a5cd0738fac7693ca021 /meta/classes/testimage.bbclass | |
parent | 0aa5b97f9e0d8941ce342e9f162dd3b19d4b49bb (diff) | |
download | openembedded-core-0c30a25c3d5f7fb1087dff45e01595329620235f.tar.gz openembedded-core-0c30a25c3d5f7fb1087dff45e01595329620235f.tar.bz2 openembedded-core-0c30a25c3d5f7fb1087dff45e01595329620235f.zip |
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>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 3 |
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() |