> Ok, but I think we should first find a way to ensure a proper deletion of
> such environments in case of failure, otherwise they'll accumulate. The
> current behavior, while not optimal, makes it at least easy to detect and
> fix (rm -fr ...) such leaked environments.

I wrote a patch, see
http://trac.edgewall.org/attachment/ticket/10182/unittest_dirfix.patch
We could also print out the temp directory if we create one at test
session initialization time, to help retrieval of the actual path in
case of error.
The patch is using "atexit" which clean up the temp directory in most
cases (including test failures and Ctrl+C aborts)

It seems to work gracefully with unit-test target.

I have not checked whether if could be also used with functional-test target.

Cheers,
Manu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to