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.
22 lines
592 B
Bash
Executable file
22 lines
592 B
Bash
Executable file
#!/bin/sh
|
|
|
|
ITERKEYS_USERS=$(grep -r -I iterkeys . \
|
|
--exclude-dir .git \
|
|
--exclude-dir .tox \
|
|
--exclude-dir .idea \
|
|
--exclude-dir docsite \
|
|
--exclude-dir results \
|
|
| grep -v \
|
|
-e 'metadata-.*.json:' \
|
|
-e lib/ansible.egg-info/ \
|
|
-e lib/ansible/module_utils/six/_six.py \
|
|
-e docs/docsite/rst/dev_guide/testing/sanity/ \
|
|
-e test/sanity/code-smell/no-dict-iterkeys.sh \
|
|
-e '^[^:]*:#'
|
|
)
|
|
|
|
if [ "${ITERKEYS_USERS}" ]; then
|
|
echo 'iterkeys has been removed in python3. Use "for KEY in DICT:" instead'
|
|
echo "${ITERKEYS_USERS}"
|
|
exit 1
|
|
fi
|