From: Megan Wachs Date: Mon, 14 Aug 2017 17:17:01 +0000 (-0700) Subject: When a test fails with exception, actually print out the reason why. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4ddf772abf13e0fcd02d8c1fd7ffb34560873d0;p=riscv-tests.git When a test fails with exception, actually print out the reason why. --- diff --git a/debug/testlib.py b/debug/testlib.py index 9a45cd0..b81b4cd 100644 --- 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