~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/bench_bundle.py

  • Committer: Lukáš Lalinský
  • Date: 2007-07-22 12:08:19 UTC
  • mto: (2645.1.1 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 2647.
  • Revision ID: lalinsky@gmail.com-20070722120819-txzu81te3zc2m72v
Fix deprecation warnings on benchmarks.

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):