File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ def __init__(self):
110
110
# skipped. If list is truncated, wallet creation is skipped and keys
111
111
# are not imported.
112
112
self .wallet_names = None
113
+ # By default the wallet is not required. Set to true by skip_if_no_wallet().
114
+ # When False, we ignore wallet_names regardless of what it is.
115
+ self .requires_wallet = False
113
116
self .set_test_params ()
114
117
assert self .wallet_names is None or len (self .wallet_names ) <= self .num_nodes
115
118
if self .options .timeout_factor == 0 :
@@ -393,7 +396,7 @@ def setup_nodes(self):
393
396
extra_args = self .extra_args
394
397
self .add_nodes (self .num_nodes , extra_args )
395
398
self .start_nodes ()
396
- if self .is_wallet_compiled () :
399
+ if self .requires_wallet :
397
400
self .import_deterministic_coinbase_privkeys ()
398
401
if not self .setup_clean_chain :
399
402
for n in self .nodes :
@@ -785,6 +788,7 @@ def skip_if_no_bitcoind_zmq(self):
785
788
786
789
def skip_if_no_wallet (self ):
787
790
"""Skip the running test if wallet has not been compiled."""
791
+ self .requires_wallet = True
788
792
if not self .is_wallet_compiled ():
789
793
raise SkipTest ("wallet has not been compiled." )
790
794
if self .options .descriptors :
You can’t perform that action at this time.
0 commit comments