From cf2c0a00225e8f867b184f3e32a95537bc6eaced Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 8 Mar 2019 11:13:19 +0000 Subject: [PATCH] Add python3 unit test with drivers installed Adds unit-with-driver-libs-python3 tox environment, and corresponding ironic-with-driver-libs-python3 Zuul job. The lack of this job was highlighted by https://review.openstack.org/#/c/641972 which marks UcsSdk as supported in python 2 only. Change-Id: Ibc0f9a8fddd8f6b358efed1c4c93b95d4e01bc13 --- tox.ini | 5 +++++ zuul.d/ironic-jobs.yaml | 8 ++++++++ zuul.d/project.yaml | 2 ++ 3 files changed, 15 insertions(+) diff --git a/tox.ini b/tox.ini index d4e2385e39..1286e5bde0 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,11 @@ basepython = python2 deps = {[testenv]deps} -r{toxinidir}/driver-requirements.txt +[testenv:unit-with-driver-libs-python3] +basepython = python3 +deps = {[testenv]deps} + -r{toxinidir}/driver-requirements.txt + [testenv:genstates] basepython = python3 deps = {[testenv]deps} diff --git a/zuul.d/ironic-jobs.yaml b/zuul.d/ironic-jobs.yaml index af0bad7f51..24a0ebdd01 100644 --- a/zuul.d/ironic-jobs.yaml +++ b/zuul.d/ironic-jobs.yaml @@ -458,3 +458,11 @@ Run unit tests with driver dependencies installed. vars: tox_envlist: unit-with-driver-libs + +- job: + name: ironic-tox-unit-with-driver-libs-python3 + parent: tox + description: | + Run python 3 unit tests with driver dependencies installed. + vars: + tox_envlist: unit-with-driver-libs-python3 diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 0c89d48d17..2d3de0ad2b 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -11,6 +11,7 @@ check: jobs: - ironic-tox-unit-with-driver-libs + - ironic-tox-unit-with-driver-libs-python3 - ironic-standalone - ironic-tempest-functional-python2 - ironic-tempest-functional-python3 @@ -37,6 +38,7 @@ queue: ironic jobs: - ironic-tox-unit-with-driver-libs + - ironic-tox-unit-with-driver-libs-python3 - ironic-standalone - ironic-tempest-functional-python2 - ironic-tempest-functional-python3