Changeset 61303 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 30, 2016 3:25:41 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107595
- Location:
- trunk/src/VBox/ValidationKit/testmanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r61286 r61303 269 269 return 0; 270 270 return (self.lCpuRevision & 0xff); 271 272 def getArchBitString(self): 273 """ Returns 32-bit, 64-bit, <none>, or sCpuArch. """ 274 if self.sCpuArch is None: 275 return '<none>'; 276 if self.sCpuArch in [ 'x86',]: 277 return '32-bit'; 278 if self.sCpuArch in [ 'amd64',]: 279 return '64-bit'; 280 return self.sCpuArch; 281 282 def getPrettyCpuVendor(self): 283 """ Returns the CPU model for a x86 or amd64 testboxes.""" 284 if self.sCpuVendor is None: 285 return '<none>'; 286 if self.sCpuVendor == 'GenuineIntel': return 'Intel'; 287 if self.sCpuVendor == 'AuthenticAMD': return 'AMD'; 288 if self.sCpuVendor == 'CentaurHauls': return 'VIA'; 289 return self.sCpuVendor; 290 271 291 272 292 -
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r61301 r61303 589 589 sHtml += u'<td>%s</td>' % (webutils.escapeElem(sOsAndVer),); 590 590 else: # wonder if td.title works.. 591 sHtml += u'<td title="%s" width="1%%" style="white-space:nowrap;">%s...</td>' % (webutils.escapeAttr(sOsAndVer), webutils.escapeElem(sOsAndVer[:20])); 592 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.sCpuArch),); 593 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.sCpuVendor),); 591 sHtml += u'<td title="%s" width="1%%" style="white-space:nowrap;">%s...</td>' \ 592 % (webutils.escapeAttr(sOsAndVer), webutils.escapeElem(sOsAndVer[:20])); 593 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.getCpuBitString()),); 594 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.getPrettyCpuVendor()),); 594 595 sHtml += u'<td>f=%#x, m=%#x, s=%#x' % (oTestBox.getCpuFamily(), oTestBox.getCpuModel(), oTestBox.getCpuStepping(),) 595 596 if oTestBox.fCpuNestedPaging: sHtml += u', np';
Note:
See TracChangeset
for help on using the changeset viewer.