Fix the python34 check job

Add py34 test environment to tox.ini:

* Create a whitelist of tests which pass on Python 3: tests-py3.txt
* Run tests on Python 3 using ostestr and the blacklist

With this change, it becomes possible to make the python34 check job
voting to avoid regressions.

Change-Id: I06bbad4cfb26a9f9dcc0d924f4d9a85a557ba5ea
Partially-Implements: blueprint designate-py3
This commit is contained in:
Victor Stinner 2016-01-21 17:35:05 +01:00
parent 320dec24f5
commit 1d9f44143e
2 changed files with 26 additions and 1 deletions

21
tests-py3.txt Normal file
View File

@ -0,0 +1,21 @@
# Blacklist of tests failing on Python 3
designate.tests.test_agent.test_service
designate.tests.test_api.test_v1.test_records
designate.tests.test_api.test_v2.test_floatingips
designate.tests.test_api.test_v2.test_recordsets
designate.tests.test_api.test_v2.test_zones
designate.tests.test_backend.test_nsd4
designate.tests.test_central.test_service
designate.tests.test_dnsutils
designate.tests.test_mdns.test_handler
designate.tests.test_notification_handler.test_neutron
designate.tests.test_notification_handler.test_nova
designate.tests.test_pool_manager.test_service
designate.tests.test_storage.test_sqlalchemy
designate.tests.test_utils
designate.tests.unit.test_api.test_api_v2
designate.tests.unit.test_backend.test_designate
designate.tests.unit.test_central.test_basic
designate.tests.unit.test_pool
designate.tests.unit.test_zone_manager.test_tasks

View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = py27,flake8
envlist = py34,py27,flake8
skipsdist = True
[testenv]
@ -18,6 +18,10 @@ commands =
sh tools/pretty_tox.sh '{posargs}'
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:py34]
commands =
ostestr --blacklist_file=tests-py3.txt
[testenv:docs]
commands = python setup.py build_sphinx -E