<font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt;">You can do:</p>
<p style="margin:0;padding:0;"><span style="font-family: arial; font-size: 10pt;">./tools/with_venv.sh pip install -r tools/pip-requires</span></p>
<p style="margin:0;padding:0;"><span style="font-family: arial; font-size: 10pt;">./tools/with_venv.sh pip install -r tools/test-requires</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-family: arial; font-size: 10pt;">To get any dependencies you might be missing, however, this will leave behind previous dependencies that are no longer required.</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-family: arial; font-size: 10pt;">-Alex</span></p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt;"> </p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt;">-----Original Message-----<br />From: "Jean-Marc Saffroy" <jean.marc.saffroy@scality.com><br />Sent: Wednesday, February 13, 2013 10:40am<br />To: "OpenStack Development Mailing List" <openstack-dev@lists.openstack.org><br />Cc: "Sean Dague" <sdague@linux.vnet.ibm.com><br />Subject: Re: [openstack-dev] [Nova] Unit tests<br /><br /></p>
<div id="SafeStyles1360773986" style="font-family: arial; font-size: 10pt;">
<p style="margin:0;padding:0;">On 02/12/2013 04:09 PM, Sean Dague wrote:<br />> Your venv is probably very old. Unfortunately the venv tools don't look<br />> for freshness, just the existence of the venv.<br />><br />> rm -rf .venv and rerun, and you'll be fine.<br /><br />I had to do exactly this last week, and it took over 40 minutes to <br />download and rebuild the venv stuff.<br /><br />Is there a way to do it faster?<br /><br /><br />Jean-Marc<br /><br />><br />> -Sean<br />><br />> On 02/12/2013 08:38 AM, Gary Kotton wrote:<br />>> Hi,<br />>> Today I updated the code. When I try and run unit tests I get the<br />>> following:<br />>><br />>> garyk@linus:~/nova$ ./run_tests.sh<br />>> Running `tools/with_venv.sh python setup.py testr --slowest<br />>> --testr-args='--subunit '`<br />>> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]<br />>> or: setup.py --help [cmd1 cmd2 ...]<br />>> or: setup.py --help-commands<br />>> or: setup.py cmd --help<br />>><br />>> error: invalid command 'testr'<br />>><br />>> ----------------------------------------------------------------------<br />>> Ran 0 tests in 0.193s<br />>><br />>> OK<br />>> cp: cannot stat `.testrepository/-1': No such file or directory<br />>><br />>> Any ideas?<br />>> Thanks<br />>> Gary<br />>><br />>> _______________________________________________<br />>> OpenStack-dev mailing list<br />>> OpenStack-dev@lists.openstack.org<br />>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br />>><br />><br />><br /><br /><br />_______________________________________________<br />OpenStack-dev mailing list<br />OpenStack-dev@lists.openstack.org<br />http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</p>
</div></font>