tests: reenable developer tests.

72d103d6bb deprecated DEVELOPER env var
in favor of config.vars, but didn't update test_closing.py or test_gossip.py.

5d0a54b7f0 then removed the explicit
DEVELOPER= setting from Travis.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-06-13 10:32:17 +09:30
committed by Christian Decker
parent 02b55e35b8
commit 965c20caae
2 changed files with 7 additions and 2 deletions

View File

@@ -2,8 +2,10 @@ from fixtures import * # noqa: F401,F403
import os 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): def test_closing_id(node_factory):

View File

@@ -6,7 +6,10 @@ import time
import unittest 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") @unittest.skipIf(not DEVELOPER, "needs --dev-broadcast-interval, --dev-channelupdate-interval")