diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2014-10-24 15:48:06 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2014-10-24 15:48:06 -0400 |
commit | 9f87325b220e6766ffee524ff54528d7bc2eb13f (patch) | |
tree | 98929613bc2679a2230f6c0243af4aa5b694abf7 /qa/rpc-tests | |
parent | e401a2c557ddd1f7cf66df2e62f3324e3b7bcd40 (diff) |
Start with tidier cache directories
Remove more files from the cached, 200-block-chain data directories.
Diffstat (limited to 'qa/rpc-tests')
-rw-r--r-- | qa/rpc-tests/util.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qa/rpc-tests/util.py b/qa/rpc-tests/util.py index 036ac577e6..276b5c635f 100644 --- a/qa/rpc-tests/util.py +++ b/qa/rpc-tests/util.py @@ -110,11 +110,14 @@ def initialize_chain(test_dir): rpcs[i].setgenerate(True, 25) sync_blocks(rpcs) - # Shut them down, and remove debug.logs: + # Shut them down, and clean up cache directories: stop_nodes(rpcs) wait_bitcoinds() for i in range(4): - os.remove(debug_log("cache", i)) + os.remove(log_filename("cache", i, "debug.log")) + os.remove(log_filename("cache", i, "db.log")) + os.remove(log_filename("cache", i, "peers.dat")) + os.remove(log_filename("cache", i, "fee_estimates.dat")) for i in range(4): from_dir = os.path.join("cache", "node"+str(i)) @@ -167,8 +170,8 @@ def start_nodes(num_nodes, dir, extra_args=None, rpchost=None): if extra_args is None: extra_args = [ None for i in range(num_nodes) ] return [ start_node(i, dir, extra_args[i], rpchost) for i in range(num_nodes) ] -def debug_log(dir, n_node): - return os.path.join(dir, "node"+str(n_node), "regtest", "debug.log") +def log_filename(dir, n_node, logname): + return os.path.join(dir, "node"+str(n_node), "regtest", logname) def stop_node(node, i): node.stop() |