When a test fails with exception, actually print out the reason why.
authorMegan Wachs <megan@sifive.com>
Mon, 14 Aug 2017 17:17:01 +0000 (10:17 -0700)
committerMegan Wachs <megan@sifive.com>
Mon, 14 Aug 2017 17:17:01 +0000 (10:17 -0700)
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