made ownnode run test only run if tor is enabled
parent
24284e058f
commit
69bb257166
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue