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:
diginc 2016-10-10 23:18:05 -05:00
parent a03caea549
commit 97c44042e1
2 changed files with 153 additions and 0 deletions

13
test/test_shellcheck.py Normal file
View 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