[openstack-dev] [Python-novaclient] Python-novaclient tests fail
Daniele Casini
daniele.casini at dektech.com.au
Mon Oct 13 13:39:08 UTC 2014
I have already use "tox" instead of "python setup.py test" and the test
is successfully passed.
However, I do not understand because it does not pass using the way
reported in the official document.
Thus, two questions occour to me:
Can I use tox in order to test python-novaclient? Should the official
document (i.e http://docs.openstack.org/developer/python-novaclient/
<?ui=2&ik=fc0b506fdf&view=att&th=1490909bfc88b13c&attid=0.0.1.1&disp=emb&zw&atsh=0>)
be changed adding "tox", as well?
Thanks,
Daniele.
On 10/13/2014 01:29 PM, Andrey Kurilin wrote:
> Simple way to run tests is using tox:
> $ tox -epy27
>
> For more details, look at nova guide:
> http://docs.openstack.org/developer/nova/devref/unit_tests.html
>
> PS: Why novaclient guide recommends to use "python setup.py test"? A
> bit strange for me.
>
> On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini
> <daniele.casini at dektech.com.au <mailto:daniele.casini at dektech.com.au>>
> wrote:
>
> Hi All,
>
> I am trying to test *python-novaclient* using
> /*python****setup.py****tes**t*/asreported in
> http://docs.openstack.org/developer/python-novaclient/
> <?ui=2&ik=fc0b506fdf&view=att&th=1490909bfc88b13c&attid=0.0.1.1&disp=emb&zw&atsh=0>.
> In order to figure out the test logic I ran tests but an error is
> occurred:
>
> Exception:
> Traceback (most recent call last):
> File
> "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line
> 122, in main
> status = self.run(options, args)
> File
> "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py",
> line 283, in run
> requirement_set.install(install_options, global_options,
> root=options.root_path)
> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line
> 1431, in install
> requirement.uninstall(auto_confirm=True)
> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line
> 598, in uninstall
> paths_to_remove.remove(auto_confirm)
> File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line
> 1836, in remove
> renames(path, new_path)
> File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line
> 295, in renames
> shutil.move(old, new)
> File "/usr/lib/python2.7/shutil.py", line 300, in move
> rmtree(src)
> File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
> onerror(os.remove, fullname, sys.exc_info())
> File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
> os.remove(fullname)
> OSError: [Errno 13] Permission denied:
> '/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'
>
> Storing debug log for failure in /home/devstack/.pip/pip.log
>
> I am working on *master branch* and *no source code modification*
> are performed.
>
> Do you know how to fix it?
>
> Thanks,
>
> Daniele.
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> <mailto:OpenStack-dev at lists.openstack.org>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> --
> Best regards,
> Andrey Kurilin.
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
--
Daniele Casini
DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: daniele.casini at dektech.com.au
WEB: www.dektech.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141013/04c9d47a/attachment.html>
More information about the OpenStack-dev
mailing list