test-ansible-env-prep: simplify ara setup

The intent was to be able to test easily with Depends-On patches with a
repository prepared by Zuul but ara is being retired from
opendev.org/recordsansible/ara and will no longer be available at that location.

Change-Id: I961f58d5b24aa5e11e2a4db39f2daff3c8330063
This commit is contained in:
David Moreau Simard 2021-02-25 17:26:10 -05:00
parent 7fb5312be3
commit a8c775dfda
No known key found for this signature in database
GPG Key ID: 7D4729EC4E64E8B7
1 changed files with 2 additions and 7 deletions

View File

@ -195,13 +195,8 @@ if [[ ${ID,,} =~ (centos|rhel|fedora) ]]; then
PIP_OPTS+=" selinux"
fi
# Install ARA from source if running in ARA gate, otherwise install from PyPi
ARA_SRC_HOME="${TESTING_HOME}/src/opendev.org/recordsansible/ara"
if [[ -d "${ARA_SRC_HOME}" ]]; then
PIP_OPTS+=" ${ARA_SRC_HOME}"
else
PIP_OPTS+=" ara[server]"
fi
# Install ARA from PyPi
PIP_OPTS+=" ara[server]"
# Install all python packages
python -m pip install ${PIP_OPTS}