[MERGE REVIEW] Shortened test suite paths
Martin Pool
mbp at sourcefrog.net
Tue Apr 4 22:31:16 BST 2006
On 4 Apr 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> Hi all,
>
> This patch shortens the names used in test suite paths, so they don't
> exceed Win32 limits on path length. This reduces the number of test
> case failures.
>
> It can also be found at: http://code.aaronbentley.com/bzr/bzrrepo/bzr.ab/
OK, +1.
>
> Aaron
> === modified file 'a/bzrlib/tests/__init__.py'
> --- a/bzrlib/tests/__init__.py
> +++ b/bzrlib/tests/__init__.py
> @@ -599,7 +599,7 @@
> self._make_test_root()
> _currentdir = os.getcwdu()
> short_id = self.id().replace('bzrlib.tests.', '') \
> - .replace('__main__.', '')
> + .replace('__main__.', '')[-100:]
> self.test_dir = osutils.pathjoin(self.TEST_ROOT, short_id)
> os.mkdir(self.test_dir)
> os.chdir(self.test_dir)
>
--
Martin
More information about the bazaar
mailing list