[openstack-dev] [glance] Fail to run run_tests.sh‏

Eoghan Glynn eglynn at redhat.com
Mon Jan 21 12:24:38 UTC 2013


You should be using tox instead, e.g.:

  tox -epy27      # run tests on python 2.7
  tox -epy27,pep8 # run tests on python 2.7 & PEP-8 checks 
  tox -epy26      # run tests on python 2.6

----- Original Message -----
> 
> 
> 
> I am using the command ./run_tests.sh -V to run the glance Unittests
> on both my RHEL and Ubuntu.
> 
> And got the same error:
> ERROR:
> glance.tests.unit.test_wsgi.TestHelpers.test_headers_are_unicode
> ----------------------------------------------------------------------
> _StringException: Traceback (most recent call last):
> File "/home/MyWorks/OpenStack/glance/glance/tests/utils.py", line 60,
> in setUp
> config.parse_args(args=[])
> File "/home/MyWorks/OpenStack/glance/glance/common/config.py", line
> 77, in parse_args
> version=version.cached_version_string(),
> File
> "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",
> line 65, in cached_version_string
> self.version_string())
> File
> "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",
> line 48, in version_string
> self.version = self._get_version_from_pkg_resources()
> File
> "/home/MyWorks/OpenStack/glance/glance/openstack/common/version.py",
> line 40, in _get_version_from_pkg_resources
> provider = pkg_resources.get_provider(requirement)
> File
> "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",
> line 215, in get_provider
> return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
> File
> "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",
> line 696, in require
> needed = self.resolve(parse_requirements(requirements))
> File
> "/home/MyWorks/OpenStack/glance/.venv/lib/python2.6/site-packages/pkg_resources.py",
> line 594, in resolve
> raise DistributionNotFound(req)
> DistributionNotFound: glance
> 
> 
> Anybody know what's wrong with this?
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 



More information about the OpenStack-dev mailing list