Skip to content

Commit

Permalink
CI: Replace the container used in the nsenter tests (#368)
Browse files Browse the repository at this point in the history
* Replace the container used in the nsenter tests.

* Improve connection tests.g

* Use quay.io/ansible/ansible-runner:devel instead.
  • Loading branch information
felixfontein authored May 21, 2022
1 parent cfc6fb9 commit ab2d33a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/targets/connection_nsenter/runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/targets/connection_posix/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab2d33a

Please sign in to comment.