mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
Makefile: import config.vars.
We leave VALGRIND env var as an override for testing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ca8671de0a
commit
72d103d6bb
@@ -26,10 +26,13 @@ import unittest
|
||||
import utils
|
||||
from lightning import LightningRpc
|
||||
|
||||
with open('config.vars') as configfile:
|
||||
config = dict([(line.rstrip().split('=', 1)) for line in configfile])
|
||||
|
||||
bitcoind = None
|
||||
TEST_DIR = tempfile.mkdtemp(prefix='lightning-')
|
||||
VALGRIND = os.getenv("NO_VALGRIND", "0") == "0"
|
||||
DEVELOPER = os.getenv("DEVELOPER", "0") == "1"
|
||||
VALGRIND = os.getenv("VALGRIND", config['VALGRIND']) == "1"
|
||||
DEVELOPER = os.getenv("DEVELOPER", config['DEVELOPER']) == "1"
|
||||
TEST_DEBUG = os.getenv("TEST_DEBUG", "0") == "1"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user