[openstack-dev] [Nova] Unit tests

Jean-Marc Saffroy jean.marc.saffroy at scality.com
Wed Feb 13 15:40:34 UTC 2013


On 02/12/2013 04:09 PM, Sean Dague wrote:
> 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.

I had to do exactly this last week, and it took over 40 minutes to 
download and rebuild the venv stuff.

Is there a way to do it faster?


Jean-Marc

>
>      -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
>>
>
>




More information about the OpenStack-dev mailing list