Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/connection_lxc/runme.sh

raw
1 #!/usr/bin/env bash
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 set -eux
7
8 # Connection tests for POSIX platforms use this script by linking to it from the appropriate 'connection_' target dir.
9 # The name of the inventory group to test is extracted from the directory name following the 'connection_' prefix.
10
11 group=$(python -c \
12 "from os import path; print(path.basename(path.abspath(path.dirname('$0'))).replace('connection_', ''))")
13
14 cd ../connection
15
16 INVENTORY="../connection_${group}/test_connection.inventory" ./test.sh \
17 -e target_hosts="${group}" \
18 -e action_prefix= \
19 -e local_tmp=/tmp/ansible-local \
20 -e remote_tmp=/tmp/ansible-remote \
21 "$@"