- Timestamp:
- Feb 24, 2015 10:46:34 AM (10 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r54122 r54432 9 9 __copyright__ = \ 10 10 """ 11 Copyright (C) 2010-201 4Oracle Corporation11 Copyright (C) 2010-2015 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 1713 1713 1714 1714 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); 1716 1719 oProgressXpcom = oHd.createBaseStorage(cb, (vboxcon.MediumVariant_Standard, )) 1717 1720 oProgress = ProgressWrapper(oProgressXpcom, self.oVBoxMgr, self.oTstDrv, 'create disk %s' % (sHd)); -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r52776 r54432 9 9 __copyright__ = \ 10 10 """ 11 Copyright (C) 2012-201 4Oracle Corporation11 Copyright (C) 2012-2015 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 481 481 listNames.append('LUN'); 482 482 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); 484 487 oHd.type = vboxcon.MediumType_Normal; 485 488 oHd.setProperties(listNames, listValues); -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageStress1.py
r52776 r54432 8 8 __copyright__ = \ 9 9 """ 10 Copyright (C) 2012-201 4Oracle Corporation10 Copyright (C) 2012-2015 Oracle Corporation 11 11 12 12 This file is part of VirtualBox Open Source Edition (OSE), as … … 354 354 listNames.append('LUN'); 355 355 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); 357 360 oHd.type = vboxcon.MediumType_Normal; 358 361 oHd.setProperties(listNames, listValues);
Note:
See TracChangeset
for help on using the changeset viewer.