diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-01-02 08:57:27 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-03-19 12:26:00 -0400 |
commit | c8330d4216e9f8e31c4e910a6bdf42f09458b2cd (patch) | |
tree | 455c84ebd2b3201985ca5be4de73dd62a4d135d5 /test/functional/test_framework/test_node.py | |
parent | 93634f296e0b2281b25fdbbd5e608b2f5e662ea3 (diff) | |
download | bitcoin-c8330d4216e9f8e31c4e910a6bdf42f09458b2cd.tar.xz |
qa: Use node.datadir instead of tmpdir in test framework
Diffstat (limited to 'test/functional/test_framework/test_node.py')
-rwxr-xr-x | test/functional/test_framework/test_node.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 86e44e4c97..468e07d4ad 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -43,9 +43,9 @@ class TestNode(): To make things easier for the test writer, any unrecognised messages will be dispatched to the RPC connection.""" - def __init__(self, i, dirname, rpchost, timewait, binary, stderr, mocktime, coverage_dir, extra_conf=None, extra_args=None, use_cli=False): + def __init__(self, i, datadir, rpchost, timewait, binary, stderr, mocktime, coverage_dir, extra_conf=None, extra_args=None, use_cli=False): self.index = i - self.datadir = os.path.join(dirname, "node" + str(i)) + self.datadir = datadir self.rpchost = rpchost if timewait: self.rpc_timeout = timewait @@ -59,7 +59,7 @@ class TestNode(): self.stderr = stderr self.coverage_dir = coverage_dir if extra_conf != None: - append_config(dirname, i, extra_conf) + append_config(datadir, extra_conf) # Most callers will just need to add extra args to the standard list below. # For those callers that need more flexibity, they can just set the args property directly. # Note that common args are set in the config file (see initialize_datadir) |