From 34c1679f2ee42df40c32ad96b4269f94721dc8d4 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Mon, 12 Jun 2017 09:32:21 -0700 Subject: [PATCH] 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 --- lib/tempest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index bdbaaa5678..fc88f37e21 100644 --- a/lib/tempest +++ b/lib/tempest @@ -551,7 +551,10 @@ function configure_tempest { if [[ "$OFFLINE" != "True" ]]; then tox -revenv-tempest --notest fi - tox -evenv-tempest -- pip install -c $REQUIREMENTS_DIR/upper-constraints.txt -r requirements.txt + + # The requirements might be on a different branch, while tempest needs master requirements. + git -C $REQUIREMENTS_DIR show master:upper-constraints.txt > u-c-m.txt + tox -evenv-tempest -- pip install -c u-c-m.txt -r requirements.txt # Auth: iniset $TEMPEST_CONFIG auth tempest_roles "Member"