~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Martin Pool
  • Date: 2005-08-30 01:35:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050830013540-34e8996a86ba25fb
- rename FunctionalTest to TestCaseInTempDir

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
 
158
158
def run_suite(suite, name='test', verbose=False, pattern=".*"):
159
159
    import shutil
160
 
    from bzrlib.selftest import FunctionalTestCase
161
 
    FunctionalTestCase._TEST_NAME = name
 
160
    from bzrlib.selftest import TestCaseInTempDir
 
161
    TestCaseInTempDir._TEST_NAME = name
162
162
    if verbose:
163
163
        verbosity = 2
164
164
    else:
173
173
    # but only a little. Folk not using our testrunner will
174
174
    # have to delete their temp directories themselves.
175
175
    if result.wasSuccessful():
176
 
        if FunctionalTestCase.TEST_ROOT:
177
 
            shutil.rmtree(FunctionalTestCase.TEST_ROOT) 
 
176
        if TestCaseInTempDir.TEST_ROOT:
 
177
            shutil.rmtree(TestCaseInTempDir.TEST_ROOT) 
178
178
    else:
179
 
        print "Failed tests working directories are in '%s'\n" % FunctionalTestCase.TEST_ROOT
 
179
        print "Failed tests working directories are in '%s'\n" % TestCaseInTempDir.TEST_ROOT
180
180
    return result.wasSuccessful()