~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_debug.py

(vila) Add a config option for the progress bar type. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        # I would like to avoid run_bzr_subprocess here, but we need it to be
53
53
        # connected to a real TextUIFactory. The NullProgressView always
54
54
        # ignores transport activity.
55
 
        env = {'BZR_PROGRESS_BAR': 'text'}
56
 
        out, err = self.run_bzr_subprocess('branch -Dbytes %s/tree target'
57
 
                                           % (remote_trans.base,),
58
 
                                           env_changes=env)
 
55
        out, err = self.run_bzr_subprocess(
 
56
            'branch -Dbytes -Oprogress_bar=text %s/tree target'
 
57
            % (remote_trans.base,))
59
58
        self.assertContainsRe(err, 'Branched 1 revision')
60
59
        self.assertContainsRe(err, 'Transferred:.*kB')