made ownnode run test only run if tor is enabled

master
Kevin Froman 2020-03-19 01:42:15 -05:00
parent 24284e058f
commit 69bb257166
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ from onionrutils import localcommand
def test_own_node(test_manager):
return
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:
return
@ -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()