~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-12-13 09:36:30 UTC
  • mfrom: (2178.3.2 selftest.fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20061213093630-54b3c40eb877cfd0
(bialix) Fix selftest report for failed tests and restore formatting
 verbose output to fit in terminal width

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
    def report_test_start(self, test):
377
377
        self.count += 1
378
378
        name = self._shortened_test_description(test)
379
 
        self.stream.write(self._ellipsize_to_right(name, 60))
 
379
        self.stream.write(self._ellipsize_to_right(name,
 
380
                            osutils.terminal_width()-20))
380
381
        self.stream.flush()
381
382
 
382
383
    def report_error(self, test, err):
386
387
 
387
388
    def report_failure(self, test, err):
388
389
        self.failure_count += 1
389
 
        self.stream.writeln('FAIL %s\n    %s'
 
390
        self.stream.writeln(' FAIL %s\n    %s'
390
391
                % (self._testTimeString(), err[1]))
391
392
 
392
393
    def report_success(self, test):