~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.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:
1402
1402
class cmd_selftest(Command):
1403
1403
    """Run internal test suite"""
1404
1404
    hidden = True
1405
 
    takes_options = ['verbose']
1406
 
    def run(self, verbose=False):
 
1405
    takes_options = ['verbose', 'pattern']
 
1406
    def run(self, verbose=False, pattern=".*"):
1407
1407
        from bzrlib.selftest import selftest
1408
 
        return int(not selftest(verbose=verbose))
 
1408
        return int(not selftest(verbose=verbose, pattern=pattern))
1409
1409
 
1410
1410
 
1411
1411
class cmd_version(Command):
1655
1655
    'root':                   str,
1656
1656
    'no-backup':              None,
1657
1657
    'merge-type':             get_merge_type,
 
1658
    'pattern':                str,
1658
1659
    }
1659
1660
 
1660
1661
SHORT_OPTIONS = {