Re: [Openstack] how to run selected tests

2012-02-29 Thread Andrew Clay Shafer
The way run_tests.sh works right now, you can run all tests, all tests in a file, a module or an individual test depending on what args you run with. The default with no args will run all the tests. You can run one file passing in the name of the file minus .py (if it is a sub-directory, replace

Re: [Openstack] how to run selected tests

2012-02-29 Thread Adrian Smith
nova/testing/runner.py has a few suggestions in the header comments. e.g. To run a single test module: python nova/testing/runner.py test_compute On 29 February 2012 20:42, Yun Mao wrote: > Greetings, > > What's the most convenient way to run a subset of the existing tests? > By default ru

Re: [Openstack] how to run selected tests

2012-02-29 Thread Yun Mao
Cool. Thanks Brad and Vish for the quick reply! Yun On Wed, Feb 29, 2012 at 3:57 PM, Vishvananda Ishaya wrote: > ./run_tests.sh -N scheduler test_notify > (replace -N with -V if you are using a virtual environment) > You can also get very specific using : for class separation and . for path > a

Re: [Openstack] how to run selected tests

2012-02-29 Thread Vishvananda Ishaya
./run_tests.sh -N scheduler test_notify (replace -N with -V if you are using a virtual environment) You can also get very specific using : for class separation and . for path and method separation for example: ./run_tests.sh -N nova.tests.api.openstack.compute.contrib.test_floating_ips:FloatingI

Re: [Openstack] how to run selected tests

2012-02-29 Thread Jay Pipes
On 02/29/2012 03:42 PM, Yun Mao wrote: Greetings, What's the most convenient way to run a subset of the existing tests? By default run_tests.sh tests everything. For example, I'd like to run everything in test_scheduler plus test_notify.py, what's the best way to do that? Thanks, jpipes@uberbo

Re: [Openstack] how to run selected tests

2012-02-29 Thread Brad Hall
You can specify directories or files to run_tests.sh (i.e. ./run_tests.sh -N scheduler.test_scheduler notifier to run a subset of scheduler tests and all of the ones in the notifier directory). Thanks, Brad On Wed, Feb 29, 2012 at 12:42 PM, Yun Mao wrote: > Greetings, > > What's the most conveni

[Openstack] how to run selected tests

2012-02-29 Thread Yun Mao
Greetings, What's the most convenient way to run a subset of the existing tests? By default run_tests.sh tests everything. For example, I'd like to run everything in test_scheduler plus test_notify.py, what's the best way to do that? Thanks, Yun ___ Ma