<div dir="ltr">Simple way to run tests is using tox:<br> $ tox -epy27<br><br>For more details, look at nova guide: <a href="http://docs.openstack.org/developer/nova/devref/unit_tests.html">http://docs.openstack.org/developer/nova/devref/unit_tests.html</a><br><br>PS: Why novaclient guide recommends to use "python setup.py test"? A bit strange for me.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini <span dir="ltr"><<a href="mailto:daniele.casini@dektech.com.au" target="_blank">daniele.casini@dektech.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
I am trying to test <b>python-novaclient</b> using <i><small><small><span><big><big><b><span>python</span></b><b>
</b><b><span>setup.py</span></b><b> </b></big></big><span><big><big><b>tes</b><b>t</b></big></big></span></span></small></small></i><tt><span> </span></tt><span><span>as</span></span><tt><span> </span></tt><span><span>reported in <a href="?ui=2&ik=fc0b506fdf&view=att&th=1490909bfc88b13c&attid=0.0.1.1&disp=emb&zw&atsh=0" target="_blank">http://docs.openstack.org/developer/python-novaclient/</a></span></span><tt><span>.<br>
</span></tt><span><span>In
order to figure out the test logic I ran tests but an error is
occurred:<tt><br>
<br>
</tt></span></span><tt><span><font color="#333333">Exception:<br>
Traceback (most recent call last):<br>
File
"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py",
line 122, in main<br>
status = self.run(options, args)<br>
File
"/usr/local/lib/python2.7/dist-packages/pip/commands/install.py",
line 283, in run<br>
requirement_set.install(install_options, global_options,
root=options.root_path)<br>
File "/usr/local/lib/python2.7/dist-packages/pip/req.py",
line 1431, in install<br>
requirement.uninstall(auto_confirm=True)<br>
File "/usr/local/lib/python2.7/dist-packages/pip/req.py",
line 598, in uninstall<br>
paths_to_remove.remove(auto_confirm)<br>
File "/usr/local/lib/python2.7/dist-packages/pip/req.py",
line 1836, in remove<br>
renames(path, new_path)<br>
File "/usr/local/lib/python2.7/dist-packages/pip/util.py",
line 295, in renames<br>
shutil.move(old, new)<br>
File "/usr/lib/python2.7/shutil.py", line 300, in move<br>
rmtree(src)<br>
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree<br>
rmtree(fullname, ignore_errors, onerror)<br>
File "/usr/lib/python2.7/shutil.py", line 252, in rmtree<br>
onerror(os.remove, fullname, sys.exc_info())<br>
File "/usr/lib/python2.7/shutil.py", line 250, in rmtree<br>
os.remove(fullname)<br>
OSError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'<br>
<br>
Storing debug log for failure in /home/devstack/.pip/pip.log</font><br>
<br>
</span></tt><span><span>I am
working on <b>master branch</b> and <b>no source code
modification</b> are performed. </span></span><tt><span> <br>
<br>
</span></tt><span><span></span></span><span><span>Do you know how to fix
it?<tt><br>
<br>
</tt>Thanks,</span></span><span><span></span></span><tt><span><br>
<br>
</span></tt><span><span>Daniele.</span></span><tt><span><br>
<br>
</span></tt>
<pre cols="72"></pre>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Best regards,<br>Andrey Kurilin.<br></div>
</div>