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))
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) )
def iscore(result): return 'core' in result.get('options', [])