Use upper-constraints file when running tests

Currently, u-c is not uses so we are not using the versions specified in
requirements project.

Change-Id: Id0fd9e98103ff804a43f2d4485f72ac48df261c8
(cherry picked from commit e68d358532)
This commit is contained in:
Alfredo Moralejo 2019-07-22 12:00:36 +02:00
parent d18775cdf5
commit bc91243a4c
2 changed files with 7 additions and 5 deletions

View File

@ -17,6 +17,8 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin
SCENARIO=${SCENARIO:-scenario001} SCENARIO=${SCENARIO:-scenario001}
BRANCH=queens
# We could want to override the default repositories or install behavior # We could want to override the default repositories or install behavior
INSTALL_FROM_SOURCE=${INSTALL_FROM_SOURCE:-true} INSTALL_FROM_SOURCE=${INSTALL_FROM_SOURCE:-true}
MANAGE_REPOS=${MANAGE_REPOS:-true} MANAGE_REPOS=${MANAGE_REPOS:-true}
@ -240,9 +242,7 @@ fi
if [ "${INSTALL_FROM_SOURCE}" = true ]; then if [ "${INSTALL_FROM_SOURCE}" = true ]; then
# pycparser 2.19 seems to have trouble with older setuptools versions # pycparser 2.19 seems to have trouble with older setuptools versions
$SUDO pip install pycparser==2.18 $SUDO pip install pycparser==2.18
# PyYAML > 5 has some issue with setuptools queens version(22.0.5), try installing stable version $SUDO pip install --ignore-installed -c https://opendev.org/openstack/requirements/raw/branch/stable/$BRANCH/upper-constraints.txt .
$SUDO pip install PyYAML==3.12
$SUDO pip install .
export GEM_BIN_DIR=/tmp/packstackgems/bin/ export GEM_BIN_DIR=/tmp/packstackgems/bin/
export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules export PUPPETFILE_DIR=/usr/share/openstack-puppet/modules
export GEM_HOME=/tmp/packstackgems export GEM_HOME=/tmp/packstackgems

View File

@ -9,9 +9,11 @@ setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8 LANG=en_US.UTF-8
LANGUAGE=en_US:en LANGUAGE=en_US:en
LC_ALL=C LC_ALL=C
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/queens}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = /usr/bin/find . -type f -name "*.pyc" -delete commands = /usr/bin/find . -type f -name "*.pyc" -delete
stestr run {posargs} stestr run {posargs}