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

* Replace the container used in the nsenter tests.

* Improve connection tests.g

* Use quay.io/ansible/ansible-runner:devel instead.

(cherry picked from commit ab2d33aa99)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-05-21 19:33:30 +02:00 committed by GitHub
parent 75faaff9dc
commit 2bda93a682
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 [[ -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)" readonly PYTHON="$(command -v python3 python | head -n1)"
# Determine collection root # 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. # 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. # 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_', ''))") "from os import path; print(path.basename(path.abspath(path.dirname('$0'))).replace('connection_', ''))")
cd ../connection cd ../connection