Skip to content

Commit 416af3e

Browse files
author
MarcoFalke
committed
Merge #10690: [qa] Bugfix: allow overriding extra_args in ComparisonTestFramework
4ed3653 [qa] Bugfix: allow overriding extra_args in ComparisonTestFramework (Suhas Daftuar) Tree-SHA512: d8f724b3324aad73a7b15cf87ff394e8d615bf3cd5a394d5715347d833f2ae9ac745a944202986866255eca5fc105ea06ab3abe12e168b67de34482f751c68e2
2 parents 9a941a1 + 4ed3653 commit 416af3e

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
@@ -381,8 +381,10 @@ def add_options(self, parser):
381381
help="bitcoind binary to use for reference nodes (if any)")
382382

383383
def setup_network(self):
384+
extra_args = [['-whitelist=127.0.0.1']]*self.num_nodes
385+
if hasattr(self, "extra_args"):
386+
extra_args = self.extra_args
384387
self.nodes = self.start_nodes(
385-
self.num_nodes, self.options.tmpdir,
386-
extra_args=[['-whitelist=127.0.0.1']] * self.num_nodes,
388+
self.num_nodes, self.options.tmpdir, extra_args,
387389
binary=[self.options.testbinary] +
388390
[self.options.refbinary]*(self.num_nodes-1))

0 commit comments

Comments
 (0)