made ownnode run test only run if tor is enabled

This commit is contained in:
Kevin Froman 2020-03-19 01:42:15 -05:00
parent 24284e058f
commit 69bb257166

View File

@ -25,6 +25,7 @@ from onionrutils import localcommand
def test_own_node(test_manager):
if config.get('general.security_level', 0) > 0 or not config.get('transports.tor', True):
return
socks_port = localcommand.local_command('/gettorsocks')
if config.get('general.security_level', 0) > 0:
@ -39,7 +40,7 @@ def test_own_node(test_manager):
def test_tor_adder(test_manager):
if config.get('general.security_level', 0) > 0:
if config.get('general.security_level', 0) > 0 or not config.get('transports.tor', True):
return
with open(identifyhome.identify_home() + 'hs/hostname', 'r') as hs:
hs = hs.read().strip()