Debian Codegraph @

ansible_collections/community/libvirt/tests/integration/targets/connection_libvirt_qemu/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -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
8 group=$(python -c \
9 "from os import path; print(path.basename(path.abspath(path.dirname('$0'))).replace('connection_', ''))")
10
11 cd ../connection
12
13 INVENTORY="../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 "$@"