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

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

* Properly add testing dependency.

(cherry picked from commit 471506c5d4)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2022-01-03 19:30:21 +01:00
committed by GitHub
parent 4318e95618
commit b5dfc9fc75
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"