multiple user ignore setting in test suite...

Martin Pool mbp at canonical.com
Wed Aug 23 05:27:59 BST 2006


On 22 Aug 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:

> I completely agree that HOME should not be WORKING dir. For one thing,
> all of these tests that are trying to avoid './.bazaar' are now failing
> on windows because the directory is './Bazaar/2.0'.
> 
> So it was an incomplete fix on my part, to handle the new
> '.bazaar/ignore' file changes, and trying to do it without modifying the
> tests in other ways.
> 
> Personally, I have taken to using:
> 	tree = self.make_branch_and_tree('tree')
> Rather than creating trees in the working directory.
> 
> Which is a little bit cleaner anyway, because you can then create new
> trees without having them as sub-dirs of the first one. But it does make
> tests marginally more difficult to write.

That's probably a good practice for new tests, but I'd rather not have
to update all the existing ones.  So it seems better to make a new
directory per test, and point HOME and APPDATA there.

-- 
Martin




More information about the bazaar mailing list