/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-07 21:12:32 UTC
  • mto: (1908.4.6 commit-perf)
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060807211232-96637b7104feace3
Add the ability to specify a benchmark cache directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1944
1944
                     Option('lsprof-timed',
1945
1945
                            help='generate lsprof output for benchmarked'
1946
1946
                                 ' sections of code.'),
 
1947
                     Option('cache-dir', type=str,
 
1948
                            help='a directory to cache intermediate'
 
1949
                                 ' benchmark steps'),
1947
1950
                     ]
1948
1951
 
1949
1952
    def run(self, testspecs_list=None, verbose=None, one=False,
1950
1953
            keep_output=False, transport=None, benchmark=None,
1951
 
            lsprof_timed=None):
 
1954
            lsprof_timed=None, cache_dir=None):
1952
1955
        import bzrlib.ui
1953
1956
        from bzrlib.tests import selftest
1954
1957
        import bzrlib.benchmarks as benchmarks
 
1958
 
 
1959
        if cache_dir is not None:
 
1960
            benchmarks.Benchmark.CACHE_ROOT = osutils.abspath(cache_dir)
1955
1961
        # we don't want progress meters from the tests to go to the
1956
1962
        # real output; and we don't want log messages cluttering up
1957
1963
        # the real logs.