diff options
| author | MarcoFalke <[email protected]> | 2016-08-07 23:06:27 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-08-07 23:13:22 +0200 |
| commit | fad8cf63e5f6a2e26b44dbf2bbdd7df901c4e6f4 (patch) | |
| tree | 7ad02c2866f3487e099dd5b736be99bc6580ac8f /qa/rpc-tests/test_framework/test_framework.py | |
| parent | [qa] Adjust timeouts for micro-optimization of run time (diff) | |
| download | discoin-fad8cf63e5f6a2e26b44dbf2bbdd7df901c4e6f4.tar.xz discoin-fad8cf63e5f6a2e26b44dbf2bbdd7df901c4e6f4.zip | |
[qa] Use single cache dir for chains
Diffstat (limited to 'qa/rpc-tests/test_framework/test_framework.py')
| -rwxr-xr-x | qa/rpc-tests/test_framework/test_framework.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py index 30e8b5755..ced952123 100755 --- a/qa/rpc-tests/test_framework/test_framework.py +++ b/qa/rpc-tests/test_framework/test_framework.py @@ -47,7 +47,7 @@ class BitcoinTestFramework(object): if self.setup_clean_chain: initialize_chain_clean(self.options.tmpdir, self.num_nodes) else: - initialize_chain(self.options.tmpdir, self.num_nodes) + initialize_chain(self.options.tmpdir, self.num_nodes, self.options.cachedir) def setup_nodes(self): return start_nodes(self.num_nodes, self.options.tmpdir) @@ -108,6 +108,8 @@ class BitcoinTestFramework(object): help="Don't stop bitcoinds after the test execution") parser.add_option("--srcdir", dest="srcdir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../../src"), help="Source directory containing bitcoind/bitcoin-cli (default: %default)") + parser.add_option("--cachedir", dest="cachedir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../cache"), + help="Directory for caching pregenerated datadirs") parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"), help="Root directory for datadirs") parser.add_option("--tracerpc", dest="trace_rpc", default=False, action="store_true", |