未验证 提交 46451bd2 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'apahim/fix_html_report_v2'

Signed-off-by: NCleber Rosa <crosa@redhat.com>
...@@ -82,7 +82,8 @@ class ReportModel(object): ...@@ -82,7 +82,8 @@ class ReportModel(object):
return self.result.warned return self.result.warned
def rate(self): def rate(self):
total = float(self.result.tests_total) total = float(self.result.tests_total - self.result.skipped -
self.result.cancelled)
succeeded = float(self.result.passed + self.result.warned) succeeded = float(self.result.passed + self.result.warned)
if total > 0: if total > 0:
pr = 100 * (succeeded / total) pr = 100 * (succeeded / total)
......
...@@ -736,8 +736,7 @@ ...@@ -736,8 +736,7 @@
<td>Cumulative test time</td><td>{{tests_total_time}} s</td> <td>Cumulative test time</td><td>{{tests_total_time}} s</td>
</tr> </tr>
<tr> <tr>
<td>Stats</td><td>From {{tests_total}} tests executed, {{passed}} passed and {{warned}} warned (success rate of {{rate}}%)</td> <td>Stats</td><td>From {{tests_total}} tests executed, {{passed}} passed and {{warned}} warned - success rate of {{rate}}% (excluding SKIP and CANCEL)</tr>
</tr>
</table> </table>
</div> </div>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册