File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RPCAUTH=@abs_top_srcdir@/share/rpcauth/rpcauth.py
16
16
# Which components are enabled. These are commented out by `configure` if they were disabled when running config.
17
17
@ENABLE_WALLET_TRUE@ENABLE_WALLET=true
18
18
@BUILD_BITCOIN_CLI_TRUE@ENABLE_CLI=true
19
+ @BUILD_BITCOIN_WALLET_TRUE@ENABLE_WALLET_TOOL=true
19
20
@BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=true
20
21
@ENABLE_FUZZ_TRUE@ENABLE_FUZZ=true
21
22
@ENABLE_ZMQ_TRUE@ENABLE_ZMQ=true
Original file line number Diff line number Diff line change @@ -596,6 +596,11 @@ def skip_if_no_wallet(self):
596
596
if not self .is_wallet_compiled ():
597
597
raise SkipTest ("wallet has not been compiled." )
598
598
599
+ def skip_if_no_wallet_tool (self ):
600
+ """Skip the running test if bitcoin-wallet has not been compiled."""
601
+ if not self .is_wallet_tool_compiled ():
602
+ raise SkipTest ("bitcoin-wallet has not been compiled" )
603
+
599
604
def skip_if_no_cli (self ):
600
605
"""Skip the running test if bitcoin-cli has not been compiled."""
601
606
if not self .is_cli_compiled ():
@@ -609,6 +614,10 @@ def is_wallet_compiled(self):
609
614
"""Checks whether the wallet module was compiled."""
610
615
return self .config ["components" ].getboolean ("ENABLE_WALLET" )
611
616
617
+ def is_wallet_tool_compiled (self ):
618
+ """Checks whether bitcoin-wallet was compiled."""
619
+ return self .config ["components" ].getboolean ("ENABLE_WALLET_TOOL" )
620
+
612
621
def is_zmq_compiled (self ):
613
622
"""Checks whether the zmq module was compiled."""
614
623
return self .config ["components" ].getboolean ("ENABLE_ZMQ" )
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ def set_test_params(self):
23
23
24
24
def skip_test_if_missing_module (self ):
25
25
self .skip_if_no_wallet ()
26
+ self .skip_if_no_wallet_tool ()
26
27
27
28
def bitcoin_wallet_process (self , * args ):
28
29
binary = self .config ["environment" ]["BUILDDIR" ] + '/src/bitcoin-wallet' + self .config ["environment" ]["EXEEXT" ]
You can’t perform that action at this time.
0 commit comments