~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Martin Pool
  • Date: 2005-09-16 03:32:44 UTC
  • mfrom: (1185.1.23)
  • mto: (1185.8.2) (974.1.91)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050916033244-18c4f4bcba663e42
- merge in many integration fixes from Robert

  * xml escaping of unprintable characters

  * 'make clean'

  * new, more consistent Branch constructors 

  * RemoteBranch tests against local farmework

  * scott's non-verbose commit fix 

This seems to break this usage though 

  bzr diff -r 1207..1208 ../bzr.robertc-integration

robertc@robertcollins.net-20050915175953-a16fdc627ce7c541

Show diffs side-by-side

added added

removed removed

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