mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b24f2172a5
commit
963b69b5f3
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user