mirror of
				https://github.com/pi-hole/pi-hole.git
				synced 2025-11-04 05:34:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			459 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			459 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import pytest
 | 
						|
import testinfra
 | 
						|
 | 
						|
run_local = testinfra.get_backend(
 | 
						|
    "local://"
 | 
						|
).get_module("Command").run
 | 
						|
 | 
						|
def test_scripts_pass_shellcheck():
 | 
						|
    ''' Make sure shellcheck does not find anything wrong with our shell scripts '''
 | 
						|
    shellcheck = "find . -type f \( -name 'update.sh' -o -name 'piholeDebug.sh' \) | while read file; do shellcheck \"$file\"; done;"
 | 
						|
    results = run_local(shellcheck)
 | 
						|
    print results.stdout
 | 
						|
    assert '' == results.stdout
 |