yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00455
[Bug 1118845] Re: nosetests won't run tests on a fresh git clone of glance due to version issue
** Changed in: glance
Status: Fix Committed => Fix Released
** Changed in: glance
Milestone: None => grizzly-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1118845
Title:
nosetests won't run tests on a fresh git clone of glance due to
version issue
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
As you can see below I have the latest rev of glance in a clean tree. I run
nosetests -x and it fails because it is unable to determine what version of
glance I'm using. Note that I don't have glance installed on the system
anywhere but I have installed all the dependencies listed in the
tools/{pip,test}-requires files.
It looks to me that glance.common.config always looks for the version in
PKG-INFO and that file doesn't exist in a fresh git clone.
$ git rev-parse HEAD
9266f8e692ac728c1539198112469358ec507d2a
$ git status
# On branch master
nothing to commit (working directory clean)
$ nosetests -x
TestDriver
test_image_create_defaults ERROR 0.02
======================================================================
ERROR: glance.tests.functional.db.test_simple.TestDriver.test_image_create_defaults
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/jaybuff/openstack/glance/glance/tests/functional/db/base.py", line 71, in setUp
super(TestDriver, self).setUp()
File "/home/jaybuff/openstack/glance/glance/tests/unit/base.py", line 53, in setUp
super(IsolatedUnitTest, self).setUp()
File "/home/jaybuff/openstack/glance/glance/tests/unit/base.py", line 38, in setUp
super(StoreClearingUnitTest, self).setUp()
File "/home/jaybuff/openstack/glance/glance/tests/utils.py", line 47, in setUp
config.parse_args(args=[])
File "/home/jaybuff/openstack/glance/glance/common/config.py", line 87, in parse_args
version=version.cached_version_string(),
File "/home/jaybuff/openstack/glance/glance/openstack/common/version.py", line 85, in cached_version_string
self.version_string())
File "/home/jaybuff/openstack/glance/glance/openstack/common/version.py", line 63, in version_string
for part in self.release_string().split('.'):
AttributeError: 'NoneType' object has no attribute 'split'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1118845/+subscriptions