Use deterministic command-line ordering when executing lightningd from tests

This commit is contained in:
practicalswift 2018-01-05 17:33:00 +01:00 committed by Christian Decker
parent d9266afcda
commit 6757255ba4

View File

@ -253,7 +253,7 @@ class LightningD(TailableProc):
self.cmd_line += ['--dev-broadcast-interval=1000'] self.cmd_line += ['--dev-broadcast-interval=1000']
if not random_hsm: if not random_hsm:
self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())] self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())]
self.cmd_line += ["--{}={}".format(k, v) for k, v in LIGHTNINGD_CONFIG.items()] self.cmd_line += ["--{}={}".format(k, v) for k, v in sorted(LIGHTNINGD_CONFIG.items())]
self.prefix = 'lightningd(%d)' % (port) self.prefix = 'lightningd(%d)' % (port)
if not os.path.exists(lightning_dir): if not os.path.exists(lightning_dir):