summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorIury Gregory Melo Ferreira <imelofer@redhat.com>2019-03-11 15:36:35 +0100
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2019-03-15 17:43:19 +0100
commit9b881cb973bc2219df90c2b71e2a1d0e18dcd98a (patch)
treeb791399aaeedafab83be3bdeda8800af63b04eba /tox.ini
parent66392a90df2d61adf780f3a95a7da37d639d227c (diff)
downloadpython-ironicclient-9b881cb973bc2219df90c2b71e2a1d0e18dcd98a.tar.gz
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
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
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