Use the TESTING_BRANCH env var for constraints

The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.

This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.

To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.

Change-Id: Ie0bb2df4df5162a1ea33d4163cd6751b1ddda824
Needed-By: https://review.openstack.org/579371
This commit is contained in:
Jesse Pretorius 2018-08-16 15:10:22 +01:00
parent c3921a94b8
commit 0f9709e867
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ deps =
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =
COMMON_TESTS_PATH
HOME
http_proxy
HTTP_PROXY
@ -20,6 +21,9 @@ passenv =
HTTPS_PROXY
no_proxy
NO_PROXY
TESTING_BRANCH
TESTING_HOME
USER
whitelist_externals =
bash
setenv =