1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-07-07 08:20:55 +02:00
docker-pi-hole/test/test_shellcheck.py

14 lines
445 B
Python
Raw Normal View History

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 '''
2017-05-14 01:43:34 +02:00
shellcheck = "find . -name '*.sh' -a ! ( -name 'list.sh' ) | while read file; do shellcheck -e SC1008 $file; done;"
results = run_local(shellcheck)
print results.stdout
assert '' == results.stdout