/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2009-04-08 13:29:00 UTC
  • mto: (4276.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4277.
  • Revision ID: robertc@robertcollins.net-20090408132900-0wvutu89y32oyov3
Move test prelude and suffix output to ExtendedTestResult

Show diffs side-by-side

added added

removed removed

Lines of Context:
3245
3245
 
3246
3246
        if cache_dir is not None:
3247
3247
            tree_creator.TreeCreator.CACHE_ROOT = osutils.abspath(cache_dir)
3248
 
        if not list_only:
3249
 
            print 'testing: %s' % (osutils.realpath(sys.argv[0]),)
3250
 
            print '   %s (%s python%s)' % (
3251
 
                    bzrlib.__path__[0],
3252
 
                    bzrlib.version_string,
3253
 
                    bzrlib._format_version_tuple(sys.version_info),
3254
 
                    )
3255
 
            print
3256
3248
        if testspecs_list is not None:
3257
3249
            pattern = '|'.join(testspecs_list)
3258
3250
        else:
3298
3290
        finally:
3299
3291
            if benchfile is not None:
3300
3292
                benchfile.close()
3301
 
        if not list_only:
3302
 
            if result:
3303
 
                note('tests passed')
3304
 
            else:
3305
 
                note('tests failed')
3306
3293
        return int(not result)
3307
3294
 
3308
3295