From c4e21178442e8d19b497744b92209a28ff543586 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 14 Jun 2022 21:25:41 +0200 Subject: [PATCH] Skip Ansible 2.9 coverage reporting with new AZP container. (#384) ci_coverage --- .azure-pipelines/scripts/aggregate-coverage.sh | 4 ++++ .azure-pipelines/scripts/report-coverage.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.azure-pipelines/scripts/aggregate-coverage.sh b/.azure-pipelines/scripts/aggregate-coverage.sh index 1ccfcf207..51fae879d 100755 --- a/.azure-pipelines/scripts/aggregate-coverage.sh +++ b/.azure-pipelines/scripts/aggregate-coverage.sh @@ -9,6 +9,10 @@ PATH="${PWD}/bin:${PATH}" mkdir "${agent_temp_directory}/coverage/" +if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then + exit +fi + options=(--venv --venv-system-site-packages --color -v) ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}" diff --git a/.azure-pipelines/scripts/report-coverage.sh b/.azure-pipelines/scripts/report-coverage.sh index c039f7dcb..08d1b60a1 100755 --- a/.azure-pipelines/scripts/report-coverage.sh +++ b/.azure-pipelines/scripts/report-coverage.sh @@ -5,6 +5,10 @@ set -o pipefail -eu PATH="${PWD}/bin:${PATH}" +if [[ "$(ansible --version)" =~ \ 2\.9\. ]]; then + exit +fi + if ! ansible-test --help >/dev/null 2>&1; then # Install the devel version of ansible-test for generating code coverage reports. # This is only used by Ansible Collections, which are typically tested against multiple Ansible versions (in separate jobs).