Improve changed / nonchanged validations by using new modules from community.internal_test_tools (#183)

* Use modules from internal_test_tools instead of stat workaround to check whether file actually changed.

* Properly add testing dependency.
This commit is contained in:
Felix Fontein
2022-01-03 18:43:17 +01:00
committed by GitHub
parent 2c05221d89
commit 471506c5d4
4 changed files with 16 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ if [ "${test}" == "sanity/extra" ]; then
fi
# START: HACK install integration test dependencies
if [ "${test}" == "sanity/extra" ]; then
if [ "${script}" != "units" ] && [ "${script}" != "sanity" ] || [ "${test}" == "sanity/extra" ]; then
# Nothing further should be added to this list.
# This is to prevent modules or plugins in this collection having a runtime dependency on other collections.
retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools"