mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
05c8687041
`shellcheck -x` for following files. Do not test for included files SC1091 Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net> Signed-off-by: Adam Warner <adamw@rner.email> # Conflicts: # advanced/Scripts/update.sh
13 lines
447 B
Python
13 lines
447 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' | while read file; do shellcheck -x \"$file\" -e SC1090,SC1091; done;"
|
|
results = run_local(shellcheck)
|
|
print results.stdout
|
|
assert '' == results.stdout
|