mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Allow to set self.stderr when using vanilla setup_nodes()
This commit is contained in:
parent
8ba042b58e
commit
39a1c6452f
@ -220,9 +220,12 @@ class BitcoinTestFramework(object):
|
|||||||
def setup_nodes(self):
|
def setup_nodes(self):
|
||||||
"""Override this method to customize test node setup"""
|
"""Override this method to customize test node setup"""
|
||||||
extra_args = None
|
extra_args = None
|
||||||
|
stderr = None
|
||||||
if hasattr(self, "extra_args"):
|
if hasattr(self, "extra_args"):
|
||||||
extra_args = self.extra_args
|
extra_args = self.extra_args
|
||||||
self.add_nodes(self.num_nodes, extra_args)
|
if hasattr(self, "stderr"):
|
||||||
|
stderr = self.stderr
|
||||||
|
self.add_nodes(self.num_nodes, extra_args, stderr=stderr)
|
||||||
self.start_nodes()
|
self.start_nodes()
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user