Passing functional tests leaving test data around
Bug #788920 reported by
Rick Harris
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Jay Pipes |
Bug Description
Looks like two functional tests that are passing are still leaving test data around in the /tmp directory.
e.g.
Ran 127 tests in 27.366s
OK
rick@maverick:
test.95547 test.99353
We should figure out which tests are doing this, and ensure that the tearDown does a proper rmtree on those dirs.
Related branches
lp:~jaypipes/glance/bug788920
- Brian Waldon (community): Approve
- Devin Carlen (community): Approve
-
Diff: 18 lines (+4/-0)1 file modifiedtests/functional/test_curl_api.py (+4/-0)
Changed in glance: | |
importance: | Undecided → Low |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | diablo-1 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
So.... any test that does not call stop_servers() at the end of the test case will leave data around. This was on purpose. I wanted the test directory to persist if there was an exception/assert during a test case.
From looking through the code, looks like tests.functiona l.TestCurlApi. test_queued_ process_ flow() and test_filtered_ images( ) are the culprits. I'll get the fixes proposed shortly.
-jay