Run a subset of tests on Python 3

Fix "tox -e py34" by only running a subset of tests which pass on Python
3.4. It should fix the py34 gate. If the gate pass, we can make it
voting to avoid Python 3 regressions.

Then we can add more tests to this list when fixing more Python 3
issues. The final goal is to remove the whitelist when all tests will
pass on Python 3.

Partial-Implements: blueprint porting-python3
Change-Id: I3e56789097162f9efc93b889e54b95147ea1f2dc
This commit is contained in:
Victor Stinner 2015-08-28 16:14:23 +02:00
parent 2096671dbe
commit 88983a8a65
1 changed files with 38 additions and 0 deletions

38
tox.ini
View File

@ -19,6 +19,44 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:py34]
commands =
python manage.py test --settings=horizon.test.settings \
horizon.test.tests.base.GetUserHomeTests \
horizon.test.tests.forms.ChoiceFieldTests \
horizon.test.tests.forms.FormMixinTests \
horizon.test.tests.middleware \
horizon.test.tests.tables.DataTableViewTests \
horizon.test.tests.templatetags \
horizon.test.tests.test_file_discovery \
horizon.test.tests.utils.FiltersTests \
horizon.test.tests.utils.GetPageSizeTests \
horizon.test.tests.utils.MemoizedTests \
horizon.test.tests.utils.TimeSinceNeverFilterTests \
horizon.test.tests.utils.ValidatorsTests \
horizon.test.tests.views
python manage.py test --settings=openstack_dashboard.test.settings \
openstack_dashboard.dashboards.project.images.images.tests.CreateImageFormTests \
openstack_dashboard.dashboards.project.images.tests.ImagesAndSnapshotsUtilsTests \
openstack_dashboard.dashboards.project.stacks.tests.TemplateFormTests \
openstack_dashboard.test.api_tests.base_tests.APIDictWrapperTests \
openstack_dashboard.test.api_tests.base_tests.APIResourceWrapperTests \
openstack_dashboard.test.api_tests.base_tests.ApiHelperTests \
openstack_dashboard.test.api_tests.base_tests.ApiVersionTests \
openstack_dashboard.test.api_tests.base_tests.QuotaSetTests \
openstack_dashboard.test.api_tests.ceilometer_tests \
openstack_dashboard.test.api_tests.cinder_tests \
openstack_dashboard.test.api_tests.fwaas_tests \
openstack_dashboard.test.api_tests.keystone_tests \
openstack_dashboard.test.api_tests.lbaas_tests \
openstack_dashboard.test.api_tests.neutron_rest_tests.NeutronPortsTestCase \
openstack_dashboard.test.api_tests.nova_tests \
openstack_dashboard.test.test_plugins.panel_group_tests.PanelGroupPluginTests \
openstack_dashboard.test.test_plugins.panel_tests.PanelPluginTests \
openstack_dashboard.test.tests.policy \
openstack_dashboard.test.tests.policy_backend \
openstack_dashboard.test.tests.utils
[testenv:pep8]
commands =
/bin/bash run_tests.sh -N --pep8