Tests fail if project's dir name is "wrong"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Low
|
Dolph Mathews |
Bug Description
Cloning the project into an arbitrary directory causes tests to fail because the tests assume a hardcoded directory name.
$ git clone git://github.
$ cd foobar/
$ python setup.py develop
$ sh run_tests.sh -N
...
=====
ERROR: test suite for <module 'tests.
-----
Traceback (most recent call last):
File "/Users/
self.setUp()
File "/Users/
self.
File "/Users/
try_
File "/Users/
return func(obj)
File ".../foobar/
with open(os.
IOError: [Errno 2] No such file or directory: '.../python-
-----
Ran 188 tests in 1.222s
FAILED (errors=1)
Changed in python-keystoneclient: | |
assignee: | nobody → Dolph Mathews (dolph) |
status: | New → In Progress |
Changed in python-keystoneclient: | |
importance: | Undecided → Low |
Changed in python-keystoneclient: | |
milestone: | none → 0.2.3 |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/21887 github. com/openstack/ python- keystoneclient/ commit/ 9196be6664b453c ced316842ba9d67 caa389517a
Committed: http://
Submitter: Jenkins
Branch: master
commit 9196be6664b453c ced316842ba9d67 caa389517a
Author: Dolph Mathews <email address hidden>
Date: Wed Feb 13 10:05:49 2013 -0600
Remove test dep on name of dir (bug 1124283)
The name of the project's directory was previously hardcoded into the keystoneclient- master" , as checked-out by keystone for
tests, so tests would fail if executed from another directory (such as
"python-
integration testing).
Also, the tests should now be executable on Windows.
Change-Id: I0a1e052054e509 b0f795fd13f95a8 04e0c255907