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:26:30 +0000 |
commit | 963b69b5f3eb6dd1ff4052240eac16da6a892e4e (patch) | |
tree | 50c1103adf5e0695676b72fa5632502db7f1efc8 /meta/classes/testimage.bbclass | |
parent | b24f2172a5e1ac93ea1c378b6989f8f573ccd154 (diff) | |
download | 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>
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): | |||
122 | try: | 122 | try: |
123 | loadTests(tc) | 123 | loadTests(tc) |
124 | except Exception as e: | 124 | except Exception as e: |
125 | bb.fatal("Loading tests failed:\n %s" % e) | 125 | import traceback |
126 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) | ||
126 | 127 | ||
127 | target.deploy() | 128 | target.deploy() |
128 | 129 | ||