From e9cc6ca372e627673113cc36d582732968b74600 Mon Sep 17 00:00:00 2001 From: Marcin Piwowarczyk Date: Mon, 24 Sep 2018 17:02:24 +0200 Subject: Execute functional test jobs running under python3 Functional tests are executed by trovestack script, which uses python in default OS version which is 2.7. This change wraps python in tox and executes trovestack int_tests in virtual enviroment, starting them in python3. Any future python version change could be managed by tox framework. Change-Id: I3a849978241d3d0669ef9e1c802ff504ac3c32cb Signed-off-by: Marcin Piwowarczyk --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 5a7d7caf..1ced348d 100644 --- a/tox.ini +++ b/tox.ini @@ -123,3 +123,14 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +[testenv:trovestack] +basepython = python3 +skip_install = True +changedir = {toxinidir}/integration/scripts +passenv = * +commands = + pip install --no-binary :all: {toxinidir} \ + -c/opt/stack/trove/test-upper-constraints.txt \ + -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt + ./trovestack {posargs} \ No newline at end of file -- cgit v1.2.1