diff options
Diffstat (limited to 'qa/rpc-tests/listtransactions.py')
-rwxr-xr-x | qa/rpc-tests/listtransactions.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qa/rpc-tests/listtransactions.py b/qa/rpc-tests/listtransactions.py index fec3acfbb3..f16095c125 100755 --- a/qa/rpc-tests/listtransactions.py +++ b/qa/rpc-tests/listtransactions.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (c) 2014 The Bitcoin Core developers +# Distributed under the MIT/X11 software license, see the accompanying +# file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API @@ -115,6 +118,7 @@ def main(): check_json_precision() success = False + nodes = [] try: print("Initializing test directory "+options.tmpdir) if not os.path.isdir(options.tmpdir): @@ -124,6 +128,7 @@ def main(): nodes = start_nodes(2, options.tmpdir) connect_nodes(nodes[1], 0) sync_blocks(nodes) + run_test(nodes) success = True @@ -132,12 +137,12 @@ def main(): print("Assertion failed: "+e.message) except Exception as e: print("Unexpected exception caught during testing: "+str(e)) - stack = traceback.extract_tb(sys.exc_info()[2]) - print(stack[-1]) + traceback.print_tb(sys.exc_info()[2]) if not options.nocleanup: print("Cleaning up") - stop_nodes() + stop_nodes(nodes) + wait_bitcoinds() shutil.rmtree(options.tmpdir) if success: |