mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
97c44042e1
Should be useful for showing others why other changes were made in the next commit.
13 lines
426 B
Python
13 lines
426 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 . -name 'basic-install.sh' | while read file; do shellcheck \"$file\"; done;"
|
|
results = run_local(shellcheck)
|
|
print results.stdout
|
|
assert '' == results.stdout
|