~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_status.py

  • Committer: Jelmer Vernooij
  • Date: 2009-01-28 18:42:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3968.
  • Revision ID: jelmer@samba.org-20090128184255-bdmklkvm83ltk191
Update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
class StatusBenchmark(Benchmark):
 
24
    """Benchmarks for ``'bzr status'``."""
24
25
 
25
26
    def test_no_ignored_unknown_kernel_like_tree(self):
26
27
        """Status in a kernel sized tree with no ignored or unknowns.
41
42
        of a single file."""
42
43
        self.make_kernel_like_committed_tree()
43
44
        #XXX depends on the filenames generated by make_kernel_like_tree
44
 
        self.time(self.run_bzr, 'status', '7/4/0/16')
 
45
        self.time(self.run_bzr, ['status', '7/4/0/16'])
45
46
 
46
47
    def test_status_one_added_file_kernel_like_tree(self):
47
48
        """Status of a single added file in our stock large tree."""
48
49
        self.make_kernel_like_tree()
49
50
        self.run_bzr('add')
50
 
        self.run_bzr('commit', '-m', 'initial import')
51
 
        self.time(self.run_bzr, 'status', '3/3/3/10')
 
51
        self.run_bzr(['commit', '-m', 'initial import'])
 
52
        self.time(self.run_bzr, ['status', '3/3/3/10'])