~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Robert Collins
  • Date: 2005-09-09 13:44:00 UTC
  • mto: (1092.3.2)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050909134400-e8c54fd6615b65dd
dont filter unless we need to (dont interfere with constructed testsuite structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
    runner = TextTestRunner(stream=sys.stdout,
166
166
                            descriptions=0,
167
167
                            verbosity=verbosity)
168
 
    visitor = filteringVisitor(pattern)
169
 
    suite.visit(visitor)
170
 
    result = runner.run(visitor.suite())
 
168
    if not pattern or pattern == ".*":
 
169
        result = runner.run(suite)
 
170
    else:
 
171
        visitor = filteringVisitor(pattern)
 
172
        suite.visit(visitor)
 
173
        result = runner.run(visitor.suite())
171
174
    # This is still a little bogus, 
172
175
    # but only a little. Folk not using our testrunner will
173
176
    # have to delete their temp directories themselves.