=== modified file 'bzrlib/benchmarks/__init__.py' --- bzrlib/benchmarks/__init__.py 2006-07-19 05:54:36 +0000 +++ bzrlib/benchmarks/__init__.py 2006-08-08 13:24:50 +0000 @@ -20,10 +20,22 @@ from bzrlib import bzrdir, plugin from bzrlib.tests.TestUtil import TestLoader from bzrlib.tests.blackbox import ExternalBase +import bzrlib.trace +import os class Benchmark(ExternalBase): + def _finishLogFile(self): + if self._log_file is None: + return + bzrlib.trace.disable_test_log(self._log_nonce) + self._log_contents = 'DELETED to lower the memory footprint' + self._log_file.close() + os.remove(self._log_file_name) + self._log_file = self._log_file_name = None + + def make_kernel_like_tree(self, url=None): """Setup a temporary tree roughly like a kernel tree.