[openstack-dev] [Nova] Unit tests

Ionuț Arțăriși iartarisi at suse.cz
Tue Feb 12 15:26:39 UTC 2013


On 02/12/2013 02:38 PM, Gary Kotton wrote:
> Hi,
> Today I updated the code. When I try and run unit tests I get the 
> following:
>
> garyk at linus:~/nova$ ./run_tests.sh
> Running `tools/with_venv.sh python setup.py testr --slowest 
> --testr-args='--subunit  '`
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>    or: setup.py --help [cmd1 cmd2 ...]
>    or: setup.py --help-commands
>    or: setup.py cmd --help
>
> error: invalid command 'testr'
>
> ----------------------------------------------------------------------
> Ran 0 tests in 0.193s
>
> OK
> cp: cannot stat `.testrepository/-1': No such file or directory
>
> Any ideas?

Just install python-testrepository. It's listed in tools/test-requires.

-Ionuț



More information about the OpenStack-dev mailing list