mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 06:48:07 +00:00
4a711340ef
* use py3 instead py2 Signed-off-by: jnozsc <jnozsc@gmail.com> * use python 3.6 Signed-off-by: jnozsc <jnozsc@gmail.com>
19 lines
508 B
Python
19 lines
508 B
Python
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
|