When a test fails with exception, actually print out the reason why.
[riscv-tests.git] / debug / testlib.py
index 9a45cd018467a5125510b32c870dd7c6a4bae84f..b81b4cdd7806358773e5c926d77eb22f3a7f15ec 100644 (file)
@@ -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