789218c215
* Rename no-iterkeys test for consistency. * Require docs for all ansible-test sanity tests. * Initial ansible-test sanity docs. * Fix capitalization of Python. * Fix sanity code smell test false positives. * Fix another code-smell false positive.
19 lines
429 B
Bash
Executable file
19 lines
429 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BASESTRING_USERS=$(grep -r basestring . \
|
|
--exclude-dir .git \
|
|
--exclude-dir .tox \
|
|
| grep isinstance \
|
|
| grep -v \
|
|
-e test/results/ \
|
|
-e docs/docsite/_build/ \
|
|
-e docs/docsite/rst/dev_guide/testing/sanity/ \
|
|
-e lib/ansible/module_utils/six/_six.py \
|
|
-e lib/ansible/modules/ \
|
|
-e '^[^:]*:#'
|
|
)
|
|
|
|
if [ "${BASESTRING_USERS}" ]; then
|
|
echo "${BASESTRING_USERS}"
|
|
exit 1
|
|
fi
|