Example #1
0
    def render_result_row(self, result):
        dp = py.path.local(result['fspath'])

        options = " ".join(
            [x for x in result.get('options', []) if x != 'core'])
        if not options:
            options = NBSP

        failureratio = 100 * (1.0 - result.ratio_of_passed())
        self.data[result.testname] = failureratio
        return html.tr(
            html.td("%.2f%%" % failureratio,
                    style="background-color: %s" % (getresultcolor(result), )),
            html.td(self.render_test_references(result)),
            html.td(result['pypy-revision']), html.td(result['userhost'][:15]),
            html.td(result['platform']),
            html.td("%.2fs" % result['execution-time']), html.td(options),
            html.td(result.repr_short_error() or NBSP))
Example #2
0
    def render_result_row(self, result): 
        dp = py.path.local(result['fspath']) 

        options = " ".join([x for x in result.get('options', []) if x!= 'core'])
        if not options: 
            options = NBSP

        failureratio = 100 * (1.0 - result.ratio_of_passed())
        self.data[result.testname] = failureratio
        return html.tr(
                html.td("%.2f%%" % failureratio, 
                    style = "background-color: %s" % (getresultcolor(result),)), 
                html.td(self.render_test_references(result)),
                html.td(result['pypy-revision']),
                html.td(result['userhost'][:15]), 
                html.td(result['platform']), 
                html.td("%.2fs" % result['execution-time']),
                html.td(options), 
                html.td(result.repr_short_error() or NBSP)
        )
Example #3
0
 def iscore(result): 
     return 'core' in result.get('options', []) 
Example #4
0
 def iscore(result):
     return 'core' in result.get('options', [])