mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pytest: allow duplicated options.
Python dict can't have duplicate entries, but some options can be specified multiple times. The easiest way is to put a list in the dict. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
284f0a04c9
commit
e6f31b3c66
@@ -316,6 +316,9 @@ class LightningD(TailableProc):
|
|||||||
for k, v in sorted(self.opts.items()):
|
for k, v in sorted(self.opts.items()):
|
||||||
if v is None:
|
if v is None:
|
||||||
opts.append("--{}".format(k))
|
opts.append("--{}".format(k))
|
||||||
|
elif isinstance(v, list):
|
||||||
|
for i in v:
|
||||||
|
opts.append("--{}={}".format(k, i))
|
||||||
else:
|
else:
|
||||||
opts.append("--{}={}".format(k, v))
|
opts.append("--{}={}".format(k, v))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user