Works without the -N option:
$ ./run_tests.sh neutron.tests.unit.ml2.test_agent_scheduler
Also works with tox (version 1.6.1):
$ tox -e py27 -- neutron.tests.unit.ml2.test_agent_scheduler
The above two methods use a virtualenv to run the tests in. The -N option to run_tests.sh tells it to not use a virtualenv and run the unit tests in the system environment. If the system environment does not satisfy the test-requirements correctly or has some settings that interfere, then the tests may not work.
The recommended way of running unit tests is in a virtualenv. If someone wants to run tests in their system environment it is up to them to adjust their environment appropriately.
Works without the -N option: tests.unit. ml2.test_ agent_scheduler
$ ./run_tests.sh neutron.
Also works with tox (version 1.6.1): tests.unit. ml2.test_ agent_scheduler
$ tox -e py27 -- neutron.
The above two methods use a virtualenv to run the tests in. The -N option to run_tests.sh tells it to not use a virtualenv and run the unit tests in the system environment. If the system environment does not satisfy the test-requirements correctly or has some settings that interfere, then the tests may not work.
The recommended way of running unit tests is in a virtualenv. If someone wants to run tests in their system environment it is up to them to adjust their environment appropriately.