From 965c20caae45e16d9599ebc613e68b522ef02245 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 Jun 2018 10:32:17 +0930 Subject: [PATCH] tests: reenable developer tests. 72d103d6bb8ddc3b06fb980946ab75e055f7a8a1 deprecated DEVELOPER env var in favor of config.vars, but didn't update test_closing.py or test_gossip.py. 5d0a54b7f0880c22afc2e9082bd9e89f2cf61fbe then removed the explicit DEVELOPER= setting from Travis. Signed-off-by: Rusty Russell --- tests/test_closing.py | 4 +++- tests/test_gossip.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 29823690f..1a79bbb55 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -2,8 +2,10 @@ from fixtures import * # noqa: F401,F403 import os +with open('config.vars') as configfile: + config = dict([(line.rstrip().split('=', 1)) for line in configfile]) -DEVELOPER = os.getenv("DEVELOPER", "0") == "1" +DEVELOPER = os.getenv("DEVELOPER", config['DEVELOPER']) == "1" def test_closing_id(node_factory): diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 6a0ebcce8..20406e458 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -6,7 +6,10 @@ import time import unittest -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" @unittest.skipIf(not DEVELOPER, "needs --dev-broadcast-interval, --dev-channelupdate-interval")