VirtualBox

Changeset 54432 in vbox for trunk/src


Ignore:
Timestamp:
Feb 24, 2015 10:46:34 AM (10 years ago)
Author:
vboxsync
Message:

ValidationKit: use new IVirtualBox.createMedium API method which replaces createHardDisk

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

Legend:

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

    r54122 r54432  
    99__copyright__ = \
    1010"""
    11 Copyright (C) 2010-2014 Oracle Corporation
     11Copyright (C) 2010-2015 Oracle Corporation
    1212
    1313This file is part of VirtualBox Open Source Edition (OSE), as
     
    17131713
    17141714        try:
    1715             oHd = self.oVBox.createHardDisk(sFmt, sHd);
     1715            if self.fpApiVer >= 4.4:
     1716                oHd = self.oVBox.createMedium(sFmt, sHd, vboxcon.AccessMode_ReadWrite, vboxcon.DeviceType_HardDisk);
     1717            else:
     1718                oHd = self.oVBox.createHardDisk(sFmt, sHd);
    17161719            oProgressXpcom = oHd.createBaseStorage(cb, (vboxcon.MediumVariant_Standard, ))
    17171720            oProgress = ProgressWrapper(oProgressXpcom, self.oVBoxMgr, self.oTstDrv, 'create disk %s' % (sHd));
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py

    r52776 r54432  
    99__copyright__ = \
    1010"""
    11 Copyright (C) 2012-2014 Oracle Corporation
     11Copyright (C) 2012-2015 Oracle Corporation
    1212
    1313This file is part of VirtualBox Open Source Edition (OSE), as
     
    481481                listNames.append('LUN');
    482482
    483                 oHd = oSession.oVBox.createHardDisk(sDiskFormat, sDiskPath);
     483                if self.fpApiVer >= 4.4:
     484                    oHd = oSession.oVBox.createMedium(sDiskFormat, sDiskPath, vboxcon.AccessMode_ReadWrite, vboxcon.DeviceType_HardDisk);
     485                else:
     486                    oHd = oSession.oVBox.createHardDisk(sDiskFormat, sDiskPath);
    484487                oHd.type = vboxcon.MediumType_Normal;
    485488                oHd.setProperties(listNames, listValues);
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageStress1.py

    r52776 r54432  
    88__copyright__ = \
    99"""
    10 Copyright (C) 2012-2014 Oracle Corporation
     10Copyright (C) 2012-2015 Oracle Corporation
    1111
    1212This file is part of VirtualBox Open Source Edition (OSE), as
     
    354354                listNames.append('LUN');
    355355
    356                 oHd = oSession.oVBox.createHardDisk(sDiskFormat, sDiskPath1);
     356                if self.fpApiVer >= 4.4:
     357                    oHd = oSession.oVBox.createMedium(sDiskFormat, sDiskPath1, vboxcon.AccessMode_ReadWrite, vboxcon.DeviceType_HardDisk);
     358                else:
     359                    oHd = oSession.oVBox.createHardDisk(sDiskFormat, sDiskPath1);
    357360                oHd.type = vboxcon.MediumType_Normal;
    358361                oHd.setProperties(listNames, listValues);
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