~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Lalo Martins
  • Date: 2005-09-09 10:58:51 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050909105851-25aa36ea27f4ce7b
creating the new branch constructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    # XXX: Not used yet
57
57
 
58
58
 
 
59
 
59
60
class EarlyStoppingTestResultAdapter(object):
60
61
    """An adapter for TestResult to stop at the first first failure or error"""
61
62
 
172
173
    # but only a little. Folk not using our testrunner will
173
174
    # have to delete their temp directories themselves.
174
175
    if result.wasSuccessful():
175
 
        if TestCaseInTempDir.TEST_ROOT is not None:
 
176
        if TestCaseInTempDir.TEST_ROOT:
176
177
            shutil.rmtree(TestCaseInTempDir.TEST_ROOT) 
177
178
    else:
178
179
        print "Failed tests working directories are in '%s'\n" % TestCaseInTempDir.TEST_ROOT