Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error while running tox on python-novaclient

I am trying to run tox on python-novaclient that I checked out right now. It says that all tests passed and then I see an InvocationError

abhishek@docean01:~/workspace/openstack/python-novaclient$ tox -e py26
GLOB sdist-make: /home/abhishek/workspace/openstack/python-novaclient/setup.py
py26 create: /home/abhishek/workspace/openstack/python-novaclient/.tox/py26
py26 installdeps: -r/home/abhishek/workspace/openstack/python-novaclient/requirements.txt, -r/home/abhishek/workspace/openstack/python-novaclient/test-requirements.txt
py26 inst: /home/abhishek/workspace/openstack/python-novaclient/.tox/dist/python-novaclient-2.15.0.92.g915b0a4.zip
py26 runtests: commands[0] | python setup.py testr --testr-args=
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ./
Killed
======================================================================
FAIL: process-returncode
tags: worker-0
----------------------------------------------------------------------
Binary content:
  traceback (test/plain; charset="utf8")
Ran 428 tests in 18.940s
FAILED (id=0, failures=2)
error: testr failed (1)
ERROR: InvocationError: '/home/abhishek/workspace/openstack/python-novaclient/.tox/py26/bin/python setup.py testr --testr-args='
__________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________
ERROR:   py26: commands failed

It runs fine when I run it by hand:

abhishek@docean01:~/workspace/openstack/python-novaclient$ .tox/py26/bin/python setup.py testr --testr-args=
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ./
Ran tests in 5.066s (-13.842s)
PASSED (id=1)

Why is it failing?