~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_check.py

  • Committer: Robert Collins
  • Date: 2009-12-06 00:12:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091206001245-x1nv37nkl21xktyy
Move the passing of test logs to the result to be via the getDetails API and remove all public use of TestCase._get_log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        revid2 = tree.commit('2')
47
47
        check_object = tree.branch.repository.check([revid1, revid2])
48
48
        check_object.report_results(verbose=True)
49
 
        log = self._get_log(keep_log_file=True)
 
49
        log = u"".join(self.getDetails()['log'].iter_text())
50
50
        self.assertContainsRe(log, "0 unreferenced text versions")
51
51
 
52
52
 
90
90
        # contents of it!
91
91
        check_object = repo.check(['ignored'])
92
92
        check_object.report_results(verbose=False)
93
 
        log = self._get_log(keep_log_file=True)
 
93
        log = u"".join(self.getDetails()['log'].iter_text())
94
94
        self.assertContainsRe(
95
95
            log, '1 revisions have incorrect parents in the revision index')
96
96
        check_object.report_results(verbose=True)
97
 
        log = self._get_log(keep_log_file=True)
 
97
        log = u"".join(self.getDetails()['log'].iter_text())
98
98
        self.assertContainsRe(
99
99
            log,
100
100
            "revision-id has wrong parents in index: "
147
147
        rev_id = builder.commit('first post')
148
148
        result = repo.check(None, check_repo=True)
149
149
        result.report_results(True)
150
 
        log = self._get_log(keep_log_file=True)
 
150
        log = u"".join(self.getDetails()['log'].iter_text())
151
151
        self.assertFalse('Missing' in log, "Something was missing in %r" % log)