[openstack-dev] How to skip certain unit tests?

Bhuvan Arumugam bhuvan at apache.org
Wed Nov 6 18:00:21 UTC 2013

On Wed, Oct 30, 2013 at 7:02 PM, Vijay B <os.vbvs at gmail.com> wrote:

> Hi,
> How can we skip certain unit tests when running run_tests.sh? I'm looking
> at the Openstack unit test page

If it's not too late you may skip tests with testr/run_tests.sh. List all
tests using testr & store in a file, exclude the tests and feed the file
that has tests to execute to run_tests.sh script. Something in these lines,
assuming you use venv ...

. .venv/bin/activate && testr list-tests | egrep -v
'exclude_test1|exclude_test2' > execute-tests && deactivate
./run_tests.sh -- --load-list=execute-tests

Bhuvan Arumugam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131106/537907eb/attachment.html>

More information about the OpenStack-dev mailing list