consistency script needs to respect constraints

The tools/consistency.sh needs to respect upper constraints
when installing plugins, otherwise we may install newer version
of dependecies which aren't recommended by the constraints
and that may lead to other issues.

Change-Id: I29c3a3020f3d8df911b7f0a0fe91d391d3a52bba
This commit is contained in:
Martin Kopec 2023-01-17 23:54:07 +00:00
parent 57378220d1
commit d49a023299
1 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,8 @@
set -x
UPPER_CONSTRAINTS_FILE="https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt"
# Prints help
function usage {
SCRIPT_NAME="basename ${BASH_SOURCE[0]}"
@ -77,10 +79,10 @@ if [[ -z $SFSDIR ]]; then
git clone https://opendev.org/openstack/manila-tempest-plugin $SFSDIR
fi
pip install $TEMPESTDIR
pip install $DNSDIR
pip install $ORCHESTRATIONDIR
pip install $SFSDIR
pip install -c ${UPPER_CONSTRAINTS_FILE} $TEMPESTDIR
pip install -c ${UPPER_CONSTRAINTS_FILE} $DNSDIR
pip install -c ${UPPER_CONSTRAINTS_FILE} $ORCHESTRATIONDIR
pip install -c ${UPPER_CONSTRAINTS_FILE} $SFSDIR
export PYTHONPATH=$TEMPESTDIR:$DNSDIR:$ORCHESTRATIONDIR:$SFSDIR