1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Avoid sanity excludes so that users can run ansible-test sanity --docker and it usually passes. (#260)

This commit is contained in:
Felix Fontein 2020-05-01 13:45:22 +02:00 committed by GitHub
parent 01eee507f2
commit 77fe9c82fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -1957,6 +1957,7 @@ tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py future-impo
tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py metaclass-boilerplate tests/unit/plugins/modules/web_infrastructure/test_apache2_module.py metaclass-boilerplate
tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py future-import-boilerplate tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py future-import-boilerplate
tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py metaclass-boilerplate tests/unit/plugins/modules/web_infrastructure/test_jenkins_plugin.py metaclass-boilerplate
tests/utils/shippable/check_matrix.py replace-urlopen
tests/utils/shippable/timing.py shebang tests/utils/shippable/timing.py shebang
plugins/modules/cloud/digital_ocean/digital_ocean.py validate-modules:deprecation-mismatch # needs to be removed and adjusted once https://github.com/ansible/ansible/pull/67684 has been merged plugins/modules/cloud/digital_ocean/digital_ocean.py validate-modules:deprecation-mismatch # needs to be removed and adjusted once https://github.com/ansible/ansible/pull/67684 has been merged
plugins/modules/cloud/digital_ocean/digital_ocean.py validate-modules:invalid-documentation # needs to be removed and adjusted once https://github.com/ansible/ansible/pull/67684 has been merged plugins/modules/cloud/digital_ocean/digital_ocean.py validate-modules:invalid-documentation # needs to be removed and adjusted once https://github.com/ansible/ansible/pull/67684 has been merged

View file

@ -34,5 +34,4 @@ fi
# shellcheck disable=SC2086 # shellcheck disable=SC2086
ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \ ansible-test sanity --color -v --junit ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
--docker --base-branch "${base_branch}" \ --docker --base-branch "${base_branch}" \
--exclude shippable.yml --exclude tests/utils/ \
"${options[@]}" --allow-disabled "${options[@]}" --allow-disabled

View file

@ -28,6 +28,7 @@ python -V
function retry function retry
{ {
# shellcheck disable=SC2034
for repetition in 1 2 3; do for repetition in 1 2 3; do
set +e set +e
"$@" "$@"
@ -36,9 +37,9 @@ function retry
if [ ${result} == 0 ]; then if [ ${result} == 0 ]; then
return ${result} return ${result}
fi fi
echo "$@ -> ${result}" echo "@* -> ${result}"
done done
echo "Command '$@' failed 3 times!" echo "Command '@*' failed 3 times!"
exit -1 exit -1
} }