aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework.py
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2014-07-08 21:24:40 -0400
committerGavin Andresen <[email protected]>2014-07-09 10:19:46 -0400
commitf5a92bf9bd9e5547cb8b4c0084c7e23c36b49b70 (patch)
treee9c3fe67e8b1ed94a52014b167c5e6d4bb54438d /qa/rpc-tests/test_framework.py
parentRefactor common RPC test code to BitcoinTestFramework base class (diff)
downloaddiscoin-f5a92bf9bd9e5547cb8b4c0084c7e23c36b49b70.tar.xz
discoin-f5a92bf9bd9e5547cb8b4c0084c7e23c36b49b70.zip
Print better errors, and add util stop_node() function.
Diffstat (limited to 'qa/rpc-tests/test_framework.py')
-rwxr-xr-xqa/rpc-tests/test_framework.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework.py b/qa/rpc-tests/test_framework.py
index a9b3d236b..5a1855665 100755
--- a/qa/rpc-tests/test_framework.py
+++ b/qa/rpc-tests/test_framework.py
@@ -68,8 +68,12 @@ class BitcoinTestFramework(object):
success = True
+ except JSONRPCException as e:
+ print("JSONRPC error: "+e.error['message'])
+ traceback.print_tb(sys.exc_info()[2])
except AssertionError as e:
print("Assertion failed: "+e.message)
+ traceback.print_tb(sys.exc_info()[2])
except Exception as e:
print("Unexpected exception caught during testing: "+str(e))
traceback.print_tb(sys.exc_info()[2])