← Back to team overview

openstack team mailing list archive

running nova unit tests (run_tests.sh)

 

I want to be able to run the nova unit tests. I'm attempting to follow
the instructions at:

http://docs.openstack.org/developer/nova/devref/development.environment.html

... but I am not having much luck.  I get the error shown below when
running "./run_tests.sh".  I'm primarily working on Mac, but got the
same result on Ubuntu 12.04.

Any idea what I'm doing wrong?

Thanks in advance!

Brian



$ ./run_tests.sh scheduler
No virtual environment found...create one? (Y/n) Y
Creating venv... done.
Installing pip in virtualenv... done.
Installing dependencies with pip (this can take a while)...
Downloading/unpacking pip
  Downloading pip-1.2.1.tar.gz (102Kb): 102Kb downloaded
  Running setup.py egg_info for package pip

    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.txt' found under
directory 'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
  Found existing installation: pip 1.0.2
    Uninstalling pip:
      Successfully uninstalled pip
  Running setup.py install for pip

    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.txt' found under
directory 'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /Users/a108378/src/openstack-nova-b0da809/.venv/bin
    Installing pip-2.7 script to
/Users/a108378/src/openstack-nova-b0da809/.venv/bin
Successfully installed pip
Cleaning up...
Downloading/unpacking distribute from
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz#md5=b400b532e33f78551e6847c1f5965e56
  Downloading distribute-0.6.28.tar.gz (627kB): 627kB downloaded
  Running setup.py egg_info for package distribute

Installing collected packages: distribute
  Found existing installation: distribute 0.6.24
    Not uninstalling distribute at
/Users/a108378/.venvburrito/lib/python/distribute-0.6.24-py2.7.egg,
outside environment
/Users/a108378/src/openstack-nova-b0da809/.venv/bin/..
  Running setup.py install for distribute
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at
/Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
    Egg installation
    Patching...
    Renaming /Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
into /Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1346972716.93
    Patched done.
    Relaunching...
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    NameError: name 'install' is not defined
    Complete output from command
/Users/a108378/src/openstack-nova-b0da809/.venv/bin/python -c "import
setuptools;__file__='/Users/a108378/src/openstack-nova-b0da809/.venv/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/var/folders/_6/8fvbsjm168s3mz5nnxzmhlvd8s1vdg/T/pip-TrElcS-record/install-record.txt
--single-version-externally-managed --install-headers
/Users/a108378/src/openstack-nova-b0da809/.venv/bin/../include/site/python2.7:
    Before install bootstrap.

Scanning installed packages

Setuptools installation detected at
/Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg

Egg installation

Patching...

Renaming /Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
into /Users/a108378/src/openstack-nova-b0da809/.venv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1346972716.93

Patched done.

Relaunching...

Traceback (most recent call last):

  File "<string>", line 1, in <module>

NameError: name 'install' is not defined

----------------------------------------
  Can't roll back distribute; was not uninstalled
Command /Users/a108378/src/openstack-nova-b0da809/.venv/bin/python -c
"import setuptools;__file__='/Users/a108378/src/openstack-nova-b0da809/.venv/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/var/folders/_6/8fvbsjm168s3mz5nnxzmhlvd8s1vdg/T/pip-TrElcS-record/install-record.txt
--single-version-externally-managed --install-headers
/Users/a108378/src/openstack-nova-b0da809/.venv/bin/../include/site/python2.7
failed with error code 1 in
/Users/a108378/src/openstack-nova-b0da809/.venv/build/distribute
Storing complete log in /Users/a108378/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade distribute" failed.
None