Execute py35 functional tests under py35 environment

Recently merged patch [1] causes py35 functional tests under py27
environment. As a result py35 functional tests also hangs (refer
bug [2]). The reason for this is in patch [1] intended to use already
created environment using 'envdir' variable but somehow it uses py27
environment instead of py35 environment.

Removed 'envdir' from functional and functional-py35 section so that
it can creates its own environment for execution.

[1] https://review.openstack.org/#/c/474816/
[2] https://bugs.launchpad.net/glance/+bug/1744824

Change-Id: I405b3718358b9977384696c8f004ffb2cf922ef5
This commit is contained in:
Abhishek Kekane 2018-01-23 09:21:02 +00:00
parent 6cdad5e1a5
commit 64eda44029

View File

@ -36,16 +36,12 @@ basepython = python3.5
commands = ostestr --slowest {posargs} commands = ostestr --slowest {posargs}
[testenv:functional] [testenv:functional]
# Reuse same venv as unit tests
envdir = {toxworkdir}/py27
setenv = setenv =
TEST_PATH = ./glance/tests/functional TEST_PATH = ./glance/tests/functional
commands = commands =
ostestr {posargs} ostestr {posargs}
[testenv:functional-py35] [testenv:functional-py35]
# Reuse same venv as unit tests
envdir = {toxworkdir}/py35
basepython = python3.5 basepython = python3.5
setenv = setenv =
TEST_PATH = ./glance/tests/functional TEST_PATH = ./glance/tests/functional