tests don't clean up until they're all done

Bug #403360 reported by Martin Pool
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Medium
Martin Pool

Bug Description

The test suite is supposed to delete working directories as each test succeeds, but it apparently does not - if you run bzr selftest on a 3GB ramdisk, it will run out of space.

I think this was reported previously by someone trying to test on openbsd - maybe in bug 314247.

Revision history for this message
Robert Collins (lifeless) wrote :

I don't see how this can happen -
TestCaseInTempDir has self.deleteTestDir set as a cleanup by the same code that makes a per-test test dir.

Revision history for this message
Robert Collins (lifeless) wrote :

The only way I could see this happening is a system leak in test cleanups - a bug in runCleanups and/or some outcome not triggering cleanups. I suspect that this may be the case, but fixed by my branch I just put up for review to overhaul outcomes.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Unless you can provide more evidence, I'm marking this bug as invalid.
For other reasons I'm been watching /tmp content while selftest is running and obviously we clean it up as we go.

I have occurrences where /tmp is filling up GBs for *one* test, but it's related to thread and socket leaks (tracked elsewhere).

Changed in bzr:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.