From 41aacb14726a2291d373fc9eebd10d0e5460fc59 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 09:13:49 +0200 Subject: [PATCH] Dynamically add meta/runtime.yml redirects before integration tests. (#2633) (#2853) ci_coverage (cherry picked from commit 07085785a38ed456742ec893481fe7f7746d0e30) Co-authored-by: Felix Fontein --- tests/utils/shippable/shippable.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index 8b998c094b..96c75786ce 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -105,6 +105,13 @@ fi # END: HACK +if [ "${script}" != "sanity" ] && [ "${script}" != "units" ]; then + # Adds meta/runtime.yml redirects for all modules before running integration tests. + # This ensures that ansible-base and ansible-core will use the "real" modules instead of the + # symbolic links, which results in coverage to be reported correctly. + "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools/tools/meta_runtime.py" redirect --target both --flatmap +fi + export PYTHONIOENCODING='utf-8' if [ "${JOB_TRIGGERED_BY_NAME:-}" == "nightly-trigger" ]; then