made ownnode run test only run if tor is enabled
This commit is contained in:
		
							parent
							
								
									24284e058f
								
							
						
					
					
						commit
						69bb257166
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue