From b68236d32b4afca162f02052d25fa9030d530192 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 25 Aug 2015 10:58:57 -0700 Subject: [PATCH] Run py34 tests with testr This doesn't use os-testr but it results in html reports built from the subunit logs. A note from amuller: tox -e py27 uses ostestr. The primary difference between testr and ostestr (For my money) is that ostestr spits out progression. After a conversation with mtreinish (The author of ostestr) it doesn't seem to be possible to use tox with ostestr for our py34 tests because we use a long regex that is split on newlines. ostestr supports the --regex flag as such (regex_a|regex_b), however it's not possible to use that with newlines and to play nice with tox. Since I think that we do want to use ostestr (Just like the py27 venv), I'll work with mtreinish to introduce a white list regex file in to ostestr. The file will be maintained in the repo and passed in to ostestr via tox. Change-Id: I1f1030cca4fd356e468d15126a730725ac9c099c --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 3c71eea1edd..fc5fbbf38ff 100644 --- a/tox.ini +++ b/tox.ini @@ -101,8 +101,8 @@ commands = {posargs} commands = sphinx-build -W -b html doc/source doc/build/html [testenv:py34] -commands = python -m testtools.run \ - {posargs:neutron.tests.unit.test_context \ +commands = python setup.py test --testr-args='{posargs: \ + neutron.tests.unit.test_context \ neutron.tests.unit.services.metering.drivers.test_iptables \ neutron.tests.unit.services.metering.agents.test_metering_agent \ neutron.tests.unit.services.test_provider_configuration \ @@ -255,7 +255,7 @@ commands = python -m testtools.run \ neutron.tests.unit.notifiers.test_nova \ neutron.tests.unit.notifiers.test_batch_notifier \ neutron.tests.unit.api.test_extensions \ - neutron.tests.unit.db.test_db_base_plugin_common} + neutron.tests.unit.db.test_db_base_plugin_common}' [flake8] # E125 continuation line does not distinguish itself from next logical line