nosetests won't run tests on a fresh git clone of glance due to version issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) | ||
Grizzly |
Fix Released
|
Undecided
|
Davanum Srinivas (DIMS) |
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/{
It looks to me that glance.
PKG-INFO and that file doesn't exist in a fresh git clone.
$ git rev-parse HEAD
9266f8e692a
$ git status
# On branch master
nothing to commit (working directory clean)
$ nosetests -x
TestDriver
===
ERROR: glance.
---
_StringExce
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
for part in self.release_
AttributeError: 'NoneType' object has no attribute 'split'
Changed in glance: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Note that doing this works around the issue and allows nosetests to run the
tests:
$ sudo python ./setup.py egg_info egg-info/ requires. txt egg-info/ PKG-INFO egg-info/ top_level. txt egg-info/ dependency_ links.txt egg-info/ SOURCES. txt' egg-info/ SOURCES. txt'
running egg_info
writing requirements to glance.
writing glance.
writing top-level names to glance.
writing dependency_links to glance.
reading manifest file 'glance.
reading manifest template 'MANIFEST.in'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'builddeb.sh'
warning: no files found matching 'AUTHORS'
warning: no files found matching 'run_tests.py'
warning: no files found matching 'ChangeLog'
writing manifest file 'glance.
$ ln -s glance. egg-info/ PKG-INFO .
$ nosetests -x