[openstack-dev] [Nova] Unit tests

Sean Dague sdague at linux.vnet.ibm.com
Tue Feb 12 15:09:03 UTC 2013


Your venv is probably very old. Unfortunately the venv tools don't look 
for freshness, just the existence of the venv.

rm -rf .venv and rerun, and you'll be fine.

	-Sean

On 02/12/2013 08:38 AM, 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?
> Thanks
> Gary
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>


-- 
Sean Dague
IBM Linux Technology Center
email: sdague at linux.vnet.ibm.com
alt-email: sldague at us.ibm.com




More information about the OpenStack-dev mailing list