Пример #1
0
 def append_tinderboxprint_line(self, suite_name):
     summary = self.handler.summarize()
     unexpected_count = sum(summary.unexpected_statuses.values())
     expected_count = sum(summary.expected_statuses.values())
     expected_failures = summary.expected_statuses.get('FAIL', 0)
     crashed = 0
     if 'crash' in summary.action_counts:
         crashed = summary.action_counts['crash']
     text_summary = tbox_print_summary(expected_count, unexpected_count,
                                       expected_failures, crashed > 0,
                                       False)
     self.info("TinderboxPrint: %s<br/>%s\n" % (suite_name, text_summary))
Пример #2
0
 def append_tinderboxprint_line(self, suite_name):
     summary = self.handler.summarize()
     unexpected_count = sum(summary.unexpected_statuses.values())
     expected_count = sum(summary.expected_statuses.values())
     expected_failures = summary.expected_statuses.get('FAIL', 0)
     crashed = 0
     if 'crash' in summary.action_counts:
         crashed = summary.action_counts['crash']
     text_summary = tbox_print_summary(expected_count,
                                       unexpected_count,
                                       expected_failures,
                                       crashed > 0,
                                       False)
     self.info("TinderboxPrint: %s<br/>%s\n" % (suite_name, text_summary))
Пример #3
0
    def append_tinderboxprint_line(self, suite_name):
        try:
            summary = self.summary
        except AttributeError:
            summary = self.handler.summarize()

        unexpected_count = sum(summary.unexpected_statuses.values())
        expected_count = sum(summary.expected_statuses.values())
        expected_failures = summary.expected_statuses.get("FAIL", 0)
        crashed = 0
        if "crash" in summary.action_counts:
            crashed = summary.action_counts["crash"]
        text_summary = tbox_print_summary(expected_count, unexpected_count,
                                          expected_failures, crashed > 0,
                                          False)
        self.info("TinderboxPrint: %s<br/>%s\n" % (suite_name, text_summary))