[MERGE] TestCaseWithMemoryTransport
John Arbash Meinel
john at arbash-meinel.com
Fri Sep 29 22:47:26 BST 2006
Robert Collins wrote:
> This patch add TestCaseWithMemoryTransport, a base class between
> TestCase and TestCaseInTempDir.
>
> It does not setup per-test test directories, and calls to get_transport
> always get MemoryTransport. it does not have make_branch_and_tree,
> rather it has make_branch_and_memory_tree() only, allowing this to be
> used for very fast precise tests.
>
> -Rob
If it isn't setting up per-test directories, what HOME does it use?
One bug that we have, is that any test that might modify ~/.bazaar/*
must use TestCaseInTempDir so that it gets a unique HOME, otherwise we
use 'cwd' which is usually the root of the bzr tree.
We *could* have bzrlib.tests.TestCase always create the test000X.tmp
directory, and set $HOME in there. But you still have the problem that
multiple runs will re-use the same $HOME.
Anyway, I think we do need to create the test specific directories,
because of potential issues with $HOME.
(Remember, wt.is_ignored() has the ultimate side effect of creating
~/.bazaar/ignore if it doesn't exist)
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060929/980d78e6/attachment.pgp
More information about the bazaar
mailing list