VirtualBox

Changeset 55084 in vbox for trunk


Ignore:
Timestamp:
Apr 1, 2015 10:53:51 PM (10 years ago)
Author:
vboxsync
Message:

ValidationKit: Replace checks for API version 4.4 with 5.0, 4.4 does not exist anymore. Not strictly necessary as the checks would trigger correctly but it removes a possible source of confusion

Location:
trunk/src/VBox/ValidationKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py

    r55018 r55084  
    317317                        fRc = fRc and oSession.setCpuCount(cCpus);
    318318
    319                         if sParavirtMode is not None and oSession.fpApiVer >= 4.4:
     319                        if sParavirtMode is not None and oSession.fpApiVer >= 5.0:
    320320                            adParavirtProviders = {
    321321                                g_ksParavirtProviderNone   : vboxcon.ParavirtProvider_None,
     
    708708
    709709            # Ditto for paravirtualization modes, except if not specified we got a less obvious default.
    710             if self.asParavirtModes is not None  and  oTestDrv.fpApiVer >= 4.4:
     710            if self.asParavirtModes is not None  and  oTestDrv.fpApiVer >= 5.0:
    711711                asParavirtModes = [sPvMode for sPvMode in oTestVm.asParavirtModesSup if sPvMode in self.asParavirtModes];
    712712                assert None not in asParavirtModes;
    713             elif oTestDrv.fpApiVer >= 4.4:
     713            elif oTestDrv.fpApiVer >= 5.0:
    714714                asParavirtModes = (oTestVm.asParavirtModesSup[0],);
    715715                assert asParavirtModes[0] is not None;
     
    735735                    for sParavirtMode in asParavirtModes:
    736736                        if sParavirtMode is not None:
    737                             assert oTestDrv.fpApiVer >= 4.4;
     737                            assert oTestDrv.fpApiVer >= 5.0;
    738738                            reporter.testStart('%s' % ( sParavirtMode, ) );
    739739
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r54938 r55084  
    17121712        """
    17131713        try:
    1714             if self.fpApiVer >= 4.4:
     1714            if self.fpApiVer >= 5.0:
    17151715                oHd = self.oVBox.createMedium(sFmt, sHd, vboxcon.AccessMode_ReadWrite, vboxcon.DeviceType_HardDisk);
    17161716            else:
     
    17321732        """
    17331733        try:
    1734             if self.fpApiVer >= 4.4:
     1734            if self.fpApiVer >= 5.0:
    17351735                oHd = self.oVBox.createMedium(sFmt, sHd, vboxcon.AccessMode_ReadWrite, vboxcon.DeviceType_HardDisk);
    17361736            else:
     
    22782278        """
    22792279        try:
    2280             if self.fpApiVer >= 4.4:
     2280            if self.fpApiVer >= 5.0:
    22812281                iWidth, iHeight, _, _, _, _ = self.o.console.display.getScreenResolution(iScreenId)
    22822282                aPngData = self.o.console.display.takeScreenShotToArray(iScreenId, iWidth, iHeight,
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py

    r54436 r55084  
    481481                listNames.append('LUN');
    482482
    483                 if self.fpApiVer >= 4.4:
     483                if self.fpApiVer >= 5.0:
    484484                    oHd = oSession.oVBox.createMedium(sDiskFormat, sDiskPath, vboxcon.AccessMode_ReadWrite, \
    485485                                                      vboxcon.DeviceType_HardDisk);
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageStress1.py

    r54437 r55084  
    354354                listNames.append('LUN');
    355355
    356                 if self.fpApiVer >= 4.4:
     356                if self.fpApiVer >= 5.0:
    357357                    oHd = oSession.oVBox.createMedium(sDiskFormat, sDiskPath1, vboxcon.AccessMode_ReadWrite, \
    358358                                                      vboxcon.DeviceType_HardDisk);
Note: See TracChangeset for help on using the changeset viewer.

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