Do not include docs/requirements.txt for functional tests

The docuementation requirements are only for documentation and not
for other code.

Since https://review.opendev.org/#/c/709222/ the minimum python version
for openstackdocstheme is 3.6 which breaks our legacy functional tests.
This patch stops docs/requirements.txt from being installed for
functional tests.

Change-Id: I7ef5369143ce8cfe3cde1e3df4da528449539e34
This commit is contained in:
Jonathan Rosser 2020-02-22 20:09:50 +00:00 committed by Dmitriy Rabotyagov
parent 690c721258
commit 6e7544ede2

View File

@ -159,7 +159,7 @@ PIP_OPTS+=" --requirement ${COMMON_TESTS_PATH}/test-requirements.txt"
# If the repo has a doc/requirements.txt file, add it to the
# requirements list. This is necessary for the linters test
# to be able to execute doc8.
if [[ -f "${WORKING_DIR}/doc/requirements.txt" ]]; then
if [[ -f "${WORKING_DIR}/doc/requirements.txt" && "${TOX_ENV_NAME}" != "functional"* ]]; then
PIP_OPTS+=" --requirement ${WORKING_DIR}/doc/requirements.txt"
fi