mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-23 07:40:15 +00:00
Adding failing shellcheck test and results
Should be useful for showing others why other changes were made in the next commit.
This commit is contained in:
parent
a03caea549
commit
97c44042e1
2 changed files with 153 additions and 0 deletions
13
test/test_shellcheck.py
Normal file
13
test/test_shellcheck.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue