CI: Replace the container used in the nsenter tests (#368)

* Replace the container used in the nsenter tests.

* Improve connection tests.g

* Use quay.io/ansible/ansible-runner:devel instead.
This commit is contained in:
Felix Fontein 2022-05-21 16:53:09 +02:00 committed by GitHub
parent cfc6fb9d40
commit ab2d33aa99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -euo pipefail
[[ -n "${DEBUG:-}" || -n "${ANSIBLE_DEBUG:-}" ]] && set -x
readonly IMAGE="quay.io/ansible/toolset:latest"
readonly IMAGE="quay.io/ansible/ansible-runner:devel"
readonly PYTHON="$(command -v python3 python | head -n1)"
# Determine collection root

View File

@ -5,7 +5,9 @@ set -eux
# Connection tests for POSIX platforms use this script by linking to it from the appropriate 'connection_' target dir.
# The name of the inventory group to test is extracted from the directory name following the 'connection_' prefix.
group=$(python -c \
PYTHON="$(command -v python3 python | head -n1)"
group=$(${PYTHON} -c \
"from os import path; print(path.basename(path.abspath(path.dirname('$0'))).replace('connection_', ''))")
cd ../connection