mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #2633/07085785 backport][stable-2] Dynamically add meta/runtime.yml redirects for integration tests to correctly report coverage (#2854)
* Dynamically add meta/runtime.yml redirects before integration tests. (#2633)
ci_coverage
(cherry picked from commit 07085785a3
)
* Remove superfluous files.
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
72d0c21f56
commit
4e06d778ab
27 changed files with 7 additions and 0 deletions
0
plugins/cache/__init__.py
vendored
0
plugins/cache/__init__.py
vendored
|
@ -97,6 +97,13 @@ fi
|
||||||
|
|
||||||
# END: HACK
|
# 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'
|
export PYTHONIOENCODING='utf-8'
|
||||||
|
|
||||||
if [ "${JOB_TRIGGERED_BY_NAME:-}" == "nightly-trigger" ]; then
|
if [ "${JOB_TRIGGERED_BY_NAME:-}" == "nightly-trigger" ]; then
|
||||||
|
|
Loading…
Reference in a new issue