VirtualBox

Changeset 61306 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 30, 2016 4:11:26 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107598
Message:

show march in testbox hover on the results page too. (untested)

Location:
trunk/src/VBox/ValidationKit/testmanager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/testbox.py

    r61305 r61306  
    367367        return None;
    368368
     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
    369378    def getArchBitString(self):
    370379        """ Returns 32-bit, 64-bit, <none>, or sCpuArch. """
     
    378387
    379388    def getPrettyCpuVendor(self):
    380         """ Returns the CPU model for a x86 or amd64 testboxes."""
     389        """ Pretty vendor name."""
    381390        if self.sCpuVendor is None:
    382391            return '<none>';
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py

    r61305 r61306  
    593593        sHtml += u'<td>%s</td>'    % (webutils.escapeElem(oTestBox.getArchBitString()),);
    594594        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(),);
    600596        if oTestBox.fCpuNestedPaging:   sHtml += u', np';
    601597        elif oTestBox.fCpuHwVirt:       sHtml += u', hw';
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuitestresult.py

    r61278 r61306  
    608608            aoTestBoxRows.append(['CPU Name', oTestBox.sCpuName.replace('  ', ' ')]);
    609609        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();
    614616            aoTestBoxRows += [
    615617                ( 'CPU Family',   '%u (%#x)' % ( uFamily,   uFamily, ) ),
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette