~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Martin Pool
  • Date: 2005-08-26 07:15:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050826071543-192d3828a8207abc
- only delete the test scratch directory if it was created

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
    # but only a little. Folk not using our testrunner will
326
326
    # have to delete their temp directories themselves.
327
327
    if result.wasSuccessful():
328
 
        shutil.rmtree(FunctionalTestCase.TEST_ROOT) 
 
328
        if FunctionalTestCase.TEST_ROOT:
 
329
            shutil.rmtree(FunctionalTestCase.TEST_ROOT) 
329
330
    else:
330
331
        print "Failed tests working directories are in '%s'\n" % FunctionalTestCase.TEST_ROOT
331
332
    return result.wasSuccessful()