~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Robert Collins
  • Date: 2005-08-24 08:34:10 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050824083410-98aa4eeb52653394
import and use TestUtil to do regex based partial test runs

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        self.assertEquals(result, retcode)
33
33
        
34
34
 
35
 
def selftest(verbose=False):
36
 
    return run_suite(test_suite(), 'testbzr', verbose=verbose)
 
35
def selftest(verbose=False, pattern=".*"):
 
36
    return run_suite(test_suite(), 'testbzr', verbose=verbose, pattern=pattern)
37
37
 
38
38
 
39
39
def test_suite():
40
 
    from unittest import TestLoader, TestSuite
 
40
    from bzrlib.selftest.TestUtil import TestLoader, TestSuite
41
41
    import bzrlib, bzrlib.store, bzrlib.inventory, bzrlib.branch
42
42
    import bzrlib.osutils, bzrlib.commands, bzrlib.merge3, bzrlib.plugin
43
43
    from doctest import DocTestSuite