projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ce788
)
When a test fails with exception, actually print out the reason why.
author
Megan Wachs
<megan@sifive.com>
Mon, 14 Aug 2017 17:17:01 +0000
(10:17 -0700)
committer
Megan Wachs
<megan@sifive.com>
Mon, 14 Aug 2017 17:17:01 +0000
(10:17 -0700)
debug/testlib.py
patch
|
blob
|
history
diff --git
a/debug/testlib.py
b/debug/testlib.py
index 9a45cd018467a5125510b32c870dd7c6a4bae84f..b81b4cdd7806358773e5c926d77eb22f3a7f15ec 100644
(file)
--- a/
debug/testlib.py
+++ b/
debug/testlib.py
@@
-560,6
+560,8
@@
class BaseTest(object):
result = "fail"
else:
result = "exception"
+ header ("Backtrace")
+ print e
if isinstance(e, TestFailed):
header("Message")
print e.message