<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have already use "tox" instead of "python setup.py test" and the
test is successfully passed.<br>
<br>
However, I do not understand because it does not pass using the way
reported in the official document.<br>
<br>
Thus, two questions occour to me:<br>
<br>
Can I use tox in order to test python-novaclient? Should the
official document (i.e <span><span><a moz-do-not-send="true"
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></span></tt>)
be changed adding "tox", as well?<br>
<br>
Thanks,<br>
<br>
Daniele. <br>
<br>
<br>
<div class="moz-cite-prefix">On 10/13/2014 01:29 PM, Andrey Kurilin
wrote:<br>
</div>
<blockquote
cite="mid:CAEVmkaxo=G6digfHRHhi=gR02rqvfiigCpKFAwWcqV0vcs3Mig@mail.gmail.com"
type="cite">
<div dir="ltr">Simple way to run tests is using tox:<br>
$ tox -epy27<br>
<br>
For more details, look at nova guide: <a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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> </div>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniele Casini
DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:daniele.casini@dektech.com.au">daniele.casini@dektech.com.au</a>
WEB: <a class="moz-txt-link-abbreviated" href="http://www.dektech.com.au">www.dektech.com.au</a> </pre>
</body>
</html>