diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-22 11:04:37 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-22 11:10:56 +0100 |
commit | 6d36f599f88e26ba39557d7b606ac9a3c8c3165a (patch) | |
tree | be0a28cdc810b63337a4a5abb4cb261f34723fed /test/functional/rpc_bind.py | |
parent | 185d48473e439743d68ede0208738f3a3e48bbce (diff) | |
parent | c8330d4216e9f8e31c4e910a6bdf42f09458b2cd (diff) |
Merge #12076: qa: Use node.datadir instead of tmpdir in test framework
c8330d4 qa: Use node.datadir instead of tmpdir in test framework (MarcoFalke)
Pull request description:
Commit c53c9831eedaf3b311bb942945268830f9ba3abc introduced the utility function `get_datadir_path`, however not all places in the code use this util function. Using the util function everywhere makes it easier to review pull requests related to the datadir.
This commit replaces datadir path creation with the `datadir` member of `TestNode`, which itself uses `get_datadir_path`.
Tree-SHA512: c75707ab7149d732a6d56152a5813138a33459d3d07577b60b89f2a207c83b7663fac5f203593677c9892d1c23a5eba4bd45c5c4ababf040d720b437240fcddf
Diffstat (limited to 'test/functional/rpc_bind.py')
-rwxr-xr-x | test/functional/rpc_bind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_bind.py b/test/functional/rpc_bind.py index 414da02072..5b50520d3f 100755 --- a/test/functional/rpc_bind.py +++ b/test/functional/rpc_bind.py @@ -48,7 +48,7 @@ class RPCBindTest(BitcoinTestFramework): self.nodes[0].rpchost = None self.start_nodes([base_args]) # connect to node through non-loopback interface - node = get_rpc_proxy(rpc_url(get_datadir_path(self.options.tmpdir, 0), 0, "%s:%d" % (rpchost, rpcport)), 0, coveragedir=self.options.coveragedir) + node = get_rpc_proxy(rpc_url(self.nodes[0].datadir, 0, "%s:%d" % (rpchost, rpcport)), 0, coveragedir=self.options.coveragedir) node.getnetworkinfo() self.stop_nodes() |