Skip to content

Commit 0754e9c

Browse files
committed
test: run feature_pruning.py without wallet compiled
Only one small part of the pruning test (sub-test `wallet_test`) is wallet-related, hence we can run all other parts without wallet compiled.
1 parent 75a227e commit 0754e9c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/functional/feature_pruning.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ def set_test_params(self):
9696
]
9797
self.rpc_timeout = 120
9898

99-
def skip_test_if_missing_module(self):
100-
self.skip_if_no_wallet()
101-
10299
def setup_network(self):
103100
self.setup_nodes()
104101

@@ -114,7 +111,8 @@ def setup_network(self):
114111
def setup_nodes(self):
115112
self.add_nodes(self.num_nodes, self.extra_args)
116113
self.start_nodes()
117-
self.import_deterministic_coinbase_privkeys()
114+
if self.is_wallet_compiled():
115+
self.import_deterministic_coinbase_privkeys()
118116

119117
def create_big_chain(self):
120118
# Start by creating some coinbases we can spend later
@@ -474,8 +472,9 @@ def run_test(self):
474472
self.log.info("Test manual pruning with timestamps")
475473
self.manual_test(4, use_timestamp=True)
476474

477-
self.log.info("Test wallet re-scan")
478-
self.wallet_test()
475+
if self.is_wallet_compiled():
476+
self.log.info("Test wallet re-scan")
477+
self.wallet_test()
479478

480479
self.log.info("Test invalid pruning command line options")
481480
self.test_invalid_command_line_options()

0 commit comments

Comments
 (0)