[openstack-dev] [Nova] Unit tests
Alex Meade
alex.meade at rackspace.com
Wed Feb 13 16:48:14 UTC 2013
You can do:
./tools/with_venv.sh pip install -r tools/pip-requires
./tools/with_venv.sh pip install -r tools/test-requires
To get any dependencies you might be missing, however, this will leave behind previous dependencies that are no longer required.
-Alex
-----Original Message-----
From: "Jean-Marc Saffroy" <jean.marc.saffroy at scality.com>
Sent: Wednesday, February 13, 2013 10:40am
To: "OpenStack Development Mailing List" <openstack-dev at lists.openstack.org>
Cc: "Sean Dague" <sdague at linux.vnet.ibm.com>
Subject: Re: [openstack-dev] [Nova] Unit tests
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
>>
>
>
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130213/f12a0a04/attachment.html>
More information about the OpenStack-dev
mailing list