Changeset 65503 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jan 28, 2017 10:45:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r65500 r65503 129 129 130 130 @staticmethod 131 def fmtPctWith Total(cHits, cTotal):131 def fmtPctWithHits(cHits, cTotal): 132 132 """ 133 133 Formats a percent number with total in parentheses. 134 134 Returns a string. 135 135 """ 136 return '%s (%s)' % (WuiReportBase.fmtPct(cHits, cTotal), c Total);136 return '%s (%s)' % (WuiReportBase.fmtPct(cHits, cTotal), cHits); 137 137 138 138 @staticmethod … … 170 170 dStatuses[ReportModelBase.ksTestStatus_Skipped] * 100 / cTotal, 171 171 dStatuses[ReportModelBase.ksTestStatus_Failure] * 100 / cTotal, ], 172 [ self.fmtPctWith Total(dStatuses[ReportModelBase.ksTestStatus_Success], cTotal),173 self.fmtPctWith Total(dStatuses[ReportModelBase.ksTestStatus_Skipped], cTotal),174 self.fmtPctWith Total(dStatuses[ReportModelBase.ksTestStatus_Failure], cTotal), ]);172 [ self.fmtPctWithHits(dStatuses[ReportModelBase.ksTestStatus_Success], cTotal), 173 self.fmtPctWithHits(dStatuses[ReportModelBase.ksTestStatus_Skipped], cTotal), 174 self.fmtPctWithHits(dStatuses[ReportModelBase.ksTestStatus_Failure], cTotal), ]); 175 175 else: 176 176 oTable.addRow(sPeriod, [ 0, 0, 0 ], [ '0%', '0%', '0%' ]);
Note:
See TracChangeset
for help on using the changeset viewer.