From 69bb257166ea091102378ed9c1e2059f6a381830 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 19 Mar 2020 01:42:15 -0500 Subject: [PATCH] made ownnode run test only run if tor is enabled --- src/runtests/ownnode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtests/ownnode.py b/src/runtests/ownnode.py index 51a0c76d..069b6cf7 100644 --- a/src/runtests/ownnode.py +++ b/src/runtests/ownnode.py @@ -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()