Skip to content

Commit 34c1679

Browse files
committed
use master upper-constraints when building tempest venv
The local requirements repo can be checked out to a stable branch, in which case, the requirements might conflict with tempest's master requirements. Master branch's upper-constraints should be used when building tempest's venv. Closes-Bug: #1706009 Change-Id: Ifd64638cae2886671421149dbbff3a57f9c64257
1 parent 2647fc2 commit 34c1679

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/tempest

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,10 @@ function configure_tempest {
551551
if [[ "$OFFLINE" != "True" ]]; then
552552
tox -revenv-tempest --notest
553553
fi
554-
tox -evenv-tempest -- pip install -c $REQUIREMENTS_DIR/upper-constraints.txt -r requirements.txt
554+
555+
# The requirements might be on a different branch, while tempest needs master requirements.
556+
git -C $REQUIREMENTS_DIR show master:upper-constraints.txt > u-c-m.txt
557+
tox -evenv-tempest -- pip install -c u-c-m.txt -r requirements.txt
555558

556559
# Auth:
557560
iniset $TEMPEST_CONFIG auth tempest_roles "Member"

0 commit comments

Comments
 (0)