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. ** Changed in: neutron Status: Confirmed => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1204456 Title: neutron ml2 plugin test failures Status in OpenStack Neutron (virtual network service): Invalid Bug description: ./run_tests.sh -N neutron.tests.unit.ml2.test_agent_scheduler Running ` python setup.py testr --slowest --testr-args='--subunit neutron.tests.unit.ml2.test_agent_scheduler'` running testr running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests/unit --list running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests/unit --load-list /tmp/tmpYUaXvW running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests/unit --load-list /tmp/tmp1h3tWw running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests/unit --load-list /tmp/tmpsYVCGc running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests/unit --load-list /tmp/tmpZS9P2j process-returncode process-returncode ... FAIL process-returncode process-returncode ... FAIL process-returncode process-returncode ... FAIL process-returncode process-returncode ... FAIL math domain error Slowest Tests neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled ... FAIL neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_scheduler_with_hosted_network neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_scheduler_with_hosted_network ... FAIL neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_hosted neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_hosted ... FAIL neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_add_to_dhcp_agent neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_add_to_dhcp_agent ... FAIL ====================================================================== FAIL: process-returncode process-returncode ---------------------------------------------------------------------- testtools.testresult.real._StringException: Binary content: traceback (test/plain; charset="utf8") ====================================================================== FAIL: process-returncode process-returncode ---------------------------------------------------------------------- testtools.testresult.real._StringException: Binary content: traceback (test/plain; charset="utf8") ====================================================================== FAIL: process-returncode process-returncode ---------------------------------------------------------------------- testtools.testresult.real._StringException: Binary content: traceback (test/plain; charset="utf8") ====================================================================== FAIL: process-returncode process-returncode ---------------------------------------------------------------------- testtools.testresult.real._StringException: Binary content: traceback (test/plain; charset="utf8") ====================================================================== FAIL: neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_disabled ---------------------------------------------------------------------- testtools.testresult.real._StringException ====================================================================== FAIL: neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_scheduler_with_hosted_network neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_scheduler_with_hosted_network ---------------------------------------------------------------------- testtools.testresult.real._StringException ====================================================================== FAIL: neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_hosted neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_auto_schedule_with_hosted ---------------------------------------------------------------------- testtools.testresult.real._StringException ====================================================================== FAIL: neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_add_to_dhcp_agent neutron.tests.unit.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_network_add_to_dhcp_agent ---------------------------------------------------------------------- testtools.testresult.real._StringException ---------------------------------------------------------------------- Ran 8 tests in 3.552s FAILED (failures=8) To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1204456/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp