~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-22 18:54:02 UTC
  • mfrom: (2645.1.2 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070722185402-a7ib57fehfwd03jy
Fix deprecation warnings on benchmarks (Lukas Lalinsky)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        or added and one commit.
40
40
        """ 
41
41
        self.make_kernel_like_committed_tree()
42
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
42
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
43
43
 
44
44
    def test_create_bundle_many_commit_tree (self):
45
45
        """Create a bundle for a tree with many commits but no changes.""" 
46
46
        self.make_many_commit_tree()
47
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
47
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
48
48
 
49
49
    def test_create_bundle_heavily_merged_tree(self):
50
50
        """Create a bundle for a heavily merged tree.""" 
51
51
        self.make_heavily_merged_tree()
52
 
        self.time(self.run_bzr, 'bundle', '--revision', '..-1')
 
52
        self.time(self.run_bzr, ['bundle', '--revision', '..-1'])
53
53
        
54
54
    def test_apply_bundle_known_kernel_like_tree(self):
55
55
        """Create a bundle for a kernel sized tree with no ignored, unknowns,
66
66
 
67
67
        tree2 = self.make_branch_and_tree('branch_a')
68
68
        os.chdir('branch_a')
69
 
        self.time(self.run_bzr, 'merge', '../bundle')
 
69
        self.time(self.run_bzr, ['merge', '../bundle'])
70
70
 
71
71
 
72
72
class BundleLibraryLevelWriteBenchmark(Benchmark):