~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2006-03-16 14:58:24 UTC
  • mto: (1615.1.1 bzr.mbp.integration)
  • mto: This revision was merged to the branch mainline in revision 1613.
  • Revision ID: mbp@sourcefrog.net-20060316145824-550a15b8ba1491df
Show a message while deleting the test directories
It can take quite a while

Show diffs side-by-side

added added

removed removed

Lines of Context:
861
861
    # This is still a little bogus, 
862
862
    # but only a little. Folk not using our testrunner will
863
863
    # have to delete their temp directories themselves.
 
864
    test_root = TestCaseInTempDir.TEST_ROOT
864
865
    if result.wasSuccessful() or not keep_output:
865
 
        if TestCaseInTempDir.TEST_ROOT is not None:
866
 
            shutil.rmtree(TestCaseInTempDir.TEST_ROOT) 
 
866
        if test_root is not None:
 
867
            print 'Deleting test root %s...' % test_root
 
868
            try:
 
869
                shutil.rmtree(test_root)
 
870
            finally:
 
871
                print
867
872
    else:
868
873
        print "Failed tests working directories are in '%s'\n" % TestCaseInTempDir.TEST_ROOT
869
874
    return result.wasSuccessful()