Debian Codegraph @

ansible_collections/community/postgresql/tests/utils/shippable/units.sh

raw
1 #!/usr/bin/env bash
2
3 set -o pipefail -eux
4
5 declare -a args
6 IFS='/:' read -ra args <<< "$1"
7
8 group="${args[1]}"
9
10 if [[ "${COVERAGE:-}" == "--coverage" ]]; then
11 timeout=90
12 else
13 timeout=30
14 fi
15
16 group1=()
17
18 case "${group}" in
19 1) options=("${group1[@]:+${group1[@]}}") ;;
20 esac
21
22 ansible-test env --timeout "${timeout}" --color -v
23
24 # shellcheck disable=SC2086
25 ansible-test units --color -v --docker default ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \
26 "${options[@]:+${options[@]}}" \