Ask Your Question
0

Problem with adding our plugin to execute run_tests.sh

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 run_tests.sh. This was the command we used. ./run_tests.sh -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 subunit.run 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 setup.py 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
0

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
0

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 23 times

Last updated: Jan 09 '14