1#!/usr/local/bin/bash 2 3set -eux 4 5# Connection tests for POSIX platforms use this script by linking to it from the appropriate 'connection_' target dir. 6# The name of the inventory group to test is extracted from the directory name following the 'connection_' prefix. 7 8group=$(python -c \ 9 "from os import path; print(path.basename(path.abspath(path.dirname('$0'))).replace('connection_', ''))") 10 11cd ../connection 12 13INVENTORY="../connection_${group}/test_connection.inventory" ./test.sh \ 14 -e target_hosts="${group}" \ 15 -e action_prefix= \ 16 -e local_tmp=/tmp/ansible-local \ 17 -e remote_tmp=/tmp/ansible-remote \ 18 "$@" 19