Skip to content

Commit 4ed3653

Browse files
committed
[qa] Bugfix: allow overriding extra_args in ComparisonTestFramework
1 parent 300f8e7 commit 4ed3653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,10 @@ def add_options(self, parser):
380380
help="bitcoind binary to use for reference nodes (if any)")
381381

382382
def setup_network(self):
383+
extra_args = [['-whitelist=127.0.0.1']]*self.num_nodes
384+
if hasattr(self, "extra_args"):
385+
extra_args = self.extra_args
383386
self.nodes = self.start_nodes(
384-
self.num_nodes, self.options.tmpdir,
385-
extra_args=[['-whitelist=127.0.0.1']] * self.num_nodes,
387+
self.num_nodes, self.options.tmpdir, extra_args,
386388
binary=[self.options.testbinary] +
387389
[self.options.refbinary]*(self.num_nodes-1))

0 commit comments

Comments
 (0)