Problem with adding our plugin to execute

asked 2014-01-07 13:24:16 -0500

Hi, I want to write unit test cases and test them using run_tests script. We have installed openstack with devstack. We are able to run openvswitch tests using This was the command we used. ./ -N neutron.tests.unit.openvswitch

Also, we are able to run brocade and plumgrid test cases using the similar command as above.

Now, we have added our plugin code at neutron/plugins/. and unit test code at neutron/tests/unit/.

But when tried the similar command for our plugin, we are facing issues.

import errors0neutron.tests.unit.my_plugin.test_my_plugin\xc9\xf1\xdaj', stderr=None error: testr failed (3) running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m discover -t ./ neutron/tests --list

I have few doubts,

when i added my test code, the tests for other plugins are also failing. When I run "python build" it is not picking my plugin. And in neutron.egg-info/SOURCES.txt my plugin files list is not there.

Any help is appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-01-09 02:22:17 -0500

gongysh gravatar image

remove your test codes and try to write a very simple test case.

edit flag offensive delete link more

answered 2014-01-08 07:55:45 -0500

Is there any reason why you would not want to use tox?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-07 13:24:16 -0500

Seen: 56 times

Last updated: Jan 09 '14