tox tests with run_tests.sh instead of nosetests

In order to ensure the glance-logcapture plugin is loaded dynamically,
we configure tox to drive tests with the run_tests.sh script intead of
calling nosetests directly.

This is intended as a temporary measure, pending promotion of the
glance-logcapture plugin to openstack-nose.

Change-Id: I556c751f4c2d31c1cbacd42d835ab436fb8f6988
This commit is contained in:
Eoghan Glynn 2012-03-19 18:26:34 +00:00
parent 0e0051604e
commit c00ba7db26
2 changed files with 2 additions and 1 deletions

View File

@ -371,6 +371,7 @@ class FunctionalTest(unittest.TestCase):
inited = False
disabled = False
log_files = []
def setUp(self):
self.test_id, self.test_dir = test_utils.get_isolated_test_env()

View File

@ -5,7 +5,7 @@ envlist = py26,py27,pep8
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests
commands = {toxinidir}/run_tests.sh -N
[testenv:pep8]
deps = pep8