mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: make utils.py read config.vars.
I could not figure out why test_announce_address suddenly stopped working: I had previously been using DEVELOPER=1 on the cmdline for historical reasons when testing locally. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
a37e692af6
commit
edf043c89b
@@ -27,7 +27,10 @@ LIGHTNINGD_CONFIG = {
|
|||||||
'disable-dns': None,
|
'disable-dns': None,
|
||||||
}
|
}
|
||||||
|
|
||||||
DEVELOPER = os.getenv("DEVELOPER", "0") == "1"
|
with open('config.vars') as configfile:
|
||||||
|
config = dict([(line.rstrip().split('=', 1)) for line in configfile])
|
||||||
|
|
||||||
|
DEVELOPER = os.getenv("DEVELOPER", config['DEVELOPER']) == "1"
|
||||||
TIMEOUT = int(os.getenv("TIMEOUT", "60"))
|
TIMEOUT = int(os.getenv("TIMEOUT", "60"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user