Changeset View
Changeset View
Standalone View
Standalone View
test/functional/tool_wallet.py
Show All 11 Lines | |||||
class ToolWalletTest(BitcoinTestFramework): | class ToolWalletTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
self.skip_if_no_wallet_tool() | |||||
def bitcoin_wallet_process(self, *args): | def bitcoin_wallet_process(self, *args): | ||||
binary = self.config["environment"]["BUILDDIR"] + \ | binary = self.config["environment"]["BUILDDIR"] + \ | ||||
'/src/bitcoin-wallet' + self.config["environment"]["EXEEXT"] | '/src/bitcoin-wallet' + self.config["environment"]["EXEEXT"] | ||||
args = ['-datadir={}'.format(self.nodes[0].datadir), | args = ['-datadir={}'.format(self.nodes[0].datadir), | ||||
'-regtest'] + list(args) | '-regtest'] + list(args) | ||||
return subprocess.Popen([binary] + args, stdin=subprocess.PIPE, | return subprocess.Popen([binary] + args, stdin=subprocess.PIPE, | ||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) | stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |