From 9b881cb973bc2219df90c2b71e2a1d0e18dcd98a Mon Sep 17 00:00:00 2001 From: Iury Gregory Melo Ferreira Date: Mon, 11 Mar 2019 15:36:35 +0100 Subject: Run jobs under python2 and python3 -Switch functional job to run under python3 -Create a functional job to run under python2 -Create a tempest job to run under python2 -Create tox env to run functional tests under python3 -Validate if `USE_PYTHON3` is set to `True` to call the correct env for tests -Remove hardcoded path for client when running functional tests - Update tests failures to work for python2 and python3 Change-Id: I55abc999f6f397b171d05fd9e9b39d833ca95e55 --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index eda34de..16b724e 100644 --- a/tox.ini +++ b/tox.ini @@ -56,6 +56,14 @@ commands = {posargs} passenv = * setenv = TESTS_DIR=./ironicclient/tests/functional LANGUAGE=en_US + OS_TESTENV_NAME = {envname} + +[testenv:functionalpy3] +basepython = python3 +passenv = * +setenv = TESTS_DIR=./ironicclient/tests/functional + LANGUAGE=en_US + OS_TESTENV_NAME = {envname} [testenv:docs] basepython = python3 -- cgit v1.2.1