~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-18 08:53:27 UTC
  • mfrom: (1713.1.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060518085327-89822346d9321aba
Merge benchmark selftests(Robert Collins, Martin Pool), bzr add chattiness(Robert Collins), and bzr push revision count reporting improvements(Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
            TestOptions.current_test = None
78
78
            TestCaseInTempDir.TEST_ROOT = old_root
79
79
 
 
80
    def test_benchmark_runs_benchmark_tests(self):
 
81
        """bzr selftest --benchmark should not run the default test suite."""
 
82
        # We test this by passing a regression test name to --benchmark, which
 
83
        # should result in 0 rests run.
 
84
        out, err = self.run_bzr('selftest', '--benchmark', 'workingtree_implementations')
 
85
        self.assertContainsRe(out, 'Ran 0 tests.*\n\nOK')
 
86
        self.assertEqual(
 
87
            'running tests...\nRunning tests: .\nCleaning up: .\ntests passed\n',
 
88
            err)
 
89
        
80
90
 
81
91
class TestRunBzr(ExternalBase):
82
92