mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: Configure non-legacy tests correctly and filter legacy
This commit is contained in:
committed by
Rusty Russell
parent
843e21826a
commit
943b6526c7
@@ -214,6 +214,8 @@ class LightningD(TailableProc):
|
||||
'--lightning-dir={}'.format(lightning_dir),
|
||||
'--port={}'.format(port),
|
||||
'--disable-irc',
|
||||
'--network=regtest',
|
||||
'--dev-broadcast-interval=1000',
|
||||
]
|
||||
|
||||
self.cmd_line += ["--{}={}".format(k, v) for k, v in LIGHTNINGD_CONFIG.items()]
|
||||
@@ -235,6 +237,8 @@ class LegacyLightningD(LightningD):
|
||||
def __init__(self, *args, **kwargs):
|
||||
LightningD.__init__(self, *args, **kwargs)
|
||||
self.cmd_line[0] = 'daemon/lightningd'
|
||||
# Filter out non-legacy options
|
||||
self.cmd_line = [c for c in self.cmd_line if '--network' not in c and '--dev-broadcast-interval' not in c]
|
||||
|
||||
def start(self):
|
||||
TailableProc.start(self)
|
||||
|
||||
Reference in New Issue
Block a user