Skip to content
Snippets Groups Projects
Unverified Commit fef1bdcf authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #1116 from rjeffman/fix_runtests_collections

utils/run-tests.sh: Install Ansible collections on virtual environment
parents 411d363d 1555132d
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,10 @@ then
log info "Installing Ansible: ${ANSIBLE_VERSION}"
pip install --quiet "${ANSIBLE_VERSION}"
log debug "Ansible version: $(ansible --version | sed -n "1p")${RST}"
else
log info "Using current virtual environment."
fi
if [ -n "${ANSIBLE_COLLECTIONS}" ]
then
log warn "Installed collections will not be removed after execution."
......@@ -266,9 +270,6 @@ then
# shellcheck disable=SC2086
quiet ansible-galaxy collection install ${ANSIBLE_COLLECTIONS} || die "Failed to install Ansible collections."
fi
else
log info "Using current virtual environment."
fi
# Ansible configuration
export ANSIBLE_ROLES_PATH="${TOPDIR}/roles"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment