Changeset 61306 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 30, 2016 4:11:26 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107598
- Location:
- trunk/src/VBox/ValidationKit/testmanager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r61305 r61306 367 367 return None; 368 368 369 def getPrettyCpuVersion(self): 370 """ Pretty formatting of the family/model/stepping with microarch optimizations. """ 371 if self.lCpuRevision is None or self.sCpuVendor is None: 372 return u'<none>'; 373 sMarch = self.queryCpuMicroarch(); 374 if sMarch is not None: 375 return '%s m%02x s%02x' % (sMarch, self.getCpuModel(), self.getCpuStepping()); 376 return 'fam%02x m%02x s%02x' % (self.getCpuFamily(), self.getCpuModel(), self.getCpuStepping()); 377 369 378 def getArchBitString(self): 370 379 """ Returns 32-bit, 64-bit, <none>, or sCpuArch. """ … … 378 387 379 388 def getPrettyCpuVendor(self): 380 """ Returns the CPU model for a x86 or amd64 testboxes."""389 """ Pretty vendor name.""" 381 390 if self.sCpuVendor is None: 382 391 return '<none>'; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r61305 r61306 593 593 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.getArchBitString()),); 594 594 sHtml += u'<td>%s</td>' % (webutils.escapeElem(oTestBox.getPrettyCpuVendor()),); 595 sMarch = oTestBox.queryCpuMicroarch(); 596 if sMarch is not None: 597 sHtml += u'<td>%s (%#x/%#x)' % (sMarch, oTestBox.getCpuModel(), oTestBox.getCpuStepping(),) 598 else: 599 sHtml += u'<td>fam%x %#x/%#x' % (oTestBox.getCpuFamily(), oTestBox.getCpuModel(), oTestBox.getCpuStepping(),) 595 sHtml += u'<td>%s' % (oTestBox.getPrettyCpuVersion(),); 600 596 if oTestBox.fCpuNestedPaging: sHtml += u', np'; 601 597 elif oTestBox.fCpuHwVirt: sHtml += u', hw'; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuitestresult.py
r61278 r61306 608 608 aoTestBoxRows.append(['CPU Name', oTestBox.sCpuName.replace(' ', ' ')]); 609 609 if oTestBox.lCpuRevision is not None: 610 # ASSUMING x86+AMD64 versioning scheme here. 611 uFamily = (oTestBox.lCpuRevision >> 24) & 0xff; 612 uModel = (oTestBox.lCpuRevision >> 8) & 0xffff; 613 uStepping = oTestBox.lCpuRevision & 0xff; 610 sMarch = oTestBox.queryCpuMicroarch(); 611 if sMarch is not None: 612 aoTestBoxRows.append( ('CPU Microarch', sMarch) ); 613 uFamily = oTestBox.getCpuFamily(); 614 uModel = oTestBox.getCpuModel(); 615 uStepping = oTestBox.getCpuStepping(); 614 616 aoTestBoxRows += [ 615 617 ( 'CPU Family', '%u (%#x)' % ( uFamily, uFamily, ) ),
Note:
See TracChangeset
for help on using the changeset viewer.