In unit tests, test setup() method not called for subdirectory tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Vish Ishaya |
Bug Description
For tests that are in subdirectories of the tests directory, it appears that the setup() method in nova/tests/
A simple way to replicate this bug is to remove the clean.sqlite file and then run a test in a subdirectory:
$ rm clean.sqlite
$/run_tests.sh api.test_wsgi
Test
test_debug ERROR
test_router ERROR
=======
ERROR: test_debug (api.test_
-------
Traceback (most recent call last):
File "/Users/
os.
File "/System/
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/Users/
=======
ERROR: test_router (api.test_
-------
Traceback (most recent call last):
File "/Users/
os.
File "/System/
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/Users/
-------
Related branches
- Devin Carlen (community): Approve
- Josh Kearney (community): Approve
-
Diff: 82 lines (+46/-0)5 files modifiednova/tests/api/__init__.py (+19/-0)
nova/tests/api/openstack/__init__.py (+3/-0)
nova/tests/image/__init__.py (+3/-0)
nova/tests/integrated/__init__.py (+2/-0)
nova/tests/scheduler/__init__.py (+19/-0)
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-3 |
Changed in nova: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |