Do not replace existing test skip lists.

This commit is contained in:
Matt Clay 2016-12-01 08:45:11 -08:00
parent 0d9afa84d5
commit d2af88ba8a

View file

@ -6,101 +6,6 @@ source_root=$(python -c "from os import path; print(path.abspath(path.join(path.
cd "${source_root}"
# Convert existing compile skip files to match the unified repository layout.
mkdir -p test/compile
rm -f test/compile/*.txt
for type in core extras; do
sed "s|^|/lib/ansible/modules/${type}|" \
< "lib/ansible/modules/${type}/test/utils/shippable/sanity-skip-python24.txt" \
>> "test/compile/python2.4-skip.txt"
done
# Existing skip files are only for modules.
# Add missing skip entries for core code.
cat << EOF >> test/compile/python2.4-skip.txt
/lib/ansible/modules/__init__.py
/lib/ansible/module_utils/a10.py
/lib/ansible/module_utils/rax.py
/lib/ansible/module_utils/openstack.py
/lib/ansible/module_utils/cloud.py
/lib/ansible/module_utils/ec2.py
/lib/ansible/module_utils/gce.py
/lib/ansible/module_utils/lxd.py
/lib/ansible/module_utils/docker_common.py
/lib/ansible/module_utils/azure_rm_common.py
/lib/ansible/module_utils/vca.py
/lib/ansible/module_utils/vmware.py
/lib/ansible/module_utils/gcp.py
/lib/ansible/module_utils/gcdns.py
/lib/ansible/vars/
/lib/ansible/utils/
/lib/ansible/template/
/lib/ansible/plugins/
/lib/ansible/playbook/
/lib/ansible/parsing/
/lib/ansible/inventory/
/lib/ansible/galaxy/
/lib/ansible/executor/
/lib/ansible/errors/
/lib/ansible/compat/
/lib/ansible/config/
/lib/ansible/cli/
/lib/ansible/constants.py
/lib/ansible/release.py
/lib/ansible/__init__.py
/hacking/
/contrib/
/docsite/
/test/
EOF
cat << EOF >> test/compile/python2.6-skip.txt
/contrib/inventory/vagrant.py
/hacking/dump_playbook_attributes.py
EOF
cat << EOF >> test/compile/python3.5-skip.txt
/test/samples/multi.py
/examples/scripts/uptime.py
EOF
for path in test/compile/*.txt; do
sort -o "${path}" "${path}"
done
# Not all scripts pass shellcheck yet.
mkdir -p test/sanity/shellcheck
cat << EOF > test/sanity/shellcheck/skip.txt
test/sanity/code-smell/boilerplate.sh
EOF
sort -o test/sanity/shellcheck/skip.txt test/sanity/shellcheck/skip.txt
# Add skip list for code-smell scripts.
# These scripts don't pass, so we can't run them in CI.
cat << EOF > test/sanity/code-smell/skip.txt
inappropriately-private.sh
EOF
# Add skip list for validate-modules.
# Some of these exclusions are temporary, others belong in validate-modules.
cat << EOF > test/sanity/validate-modules/skip.txt
lib/ansible/modules/core/utilities/logic/async_status.py
lib/ansible/modules/core/utilities/helper/_fireball.py
lib/ansible/modules/core/utilities/helper/_accelerate.py
lib/ansible/modules/core/test
lib/ansible/modules/core/.github
lib/ansible/modules/extras/test
lib/ansible/modules/extras/.github
EOF
# Remove existing aliases from previous script runs.
rm -f test/integration/targets/*/aliases