Changeset 63001 in vbox
- Timestamp:
- Aug 4, 2016 4:17:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r62484 r63001 1795 1795 return fRc; 1796 1796 1797 def createBaseHd(self, sHd, sFmt = "VDI", cb = 10*1024*1024*1024 ):1797 def createBaseHd(self, sHd, sFmt = "VDI", cb = 10*1024*1024*1024, tMediumVariant = None): 1798 1798 """ 1799 1799 Creates a base HD. 1800 1800 Returns Medium object on success and None on failure. Error information is logged. 1801 1801 """ 1802 if tMediumVariant is None: 1803 tMediumVariant = (vboxcon.MediumVariant_Standard, ); 1804 1802 1805 try: 1803 1806 if self.fpApiVer >= 5.0: … … 1805 1808 else: 1806 1809 oHd = self.oVBox.createHardDisk(sFmt, sHd); 1807 oProgressXpcom = oHd.createBaseStorage(cb, (vboxcon.MediumVariant_Standard, ))1810 oProgressXpcom = oHd.createBaseStorage(cb, tMediumVariant); 1808 1811 oProgress = ProgressWrapper(oProgressXpcom, self.oVBoxMgr, self.oTstDrv, 'create base disk %s' % (sHd)); 1809 1812 oProgress.wait(); … … 1836 1839 1837 1840 def createAndAttachHd(self, sHd, sFmt = "VDI", sController = "IDE Controller", cb = 10*1024*1024*1024, \ 1838 iPort = 0, iDevice = 0, fImmutable = True ):1841 iPort = 0, iDevice = 0, fImmutable = True, tMediumVariant = None): 1839 1842 """ 1840 1843 Creates and attaches a HD to a VM. … … 1844 1847 return False; 1845 1848 1846 oHd = self.createBaseHd(sHd, sFmt, cb )1849 oHd = self.createBaseHd(sHd, sFmt, cb, tMediumVariant); 1847 1850 if oHd is None: 1848 1851 return False;
Note:
See TracChangeset
for help on using the changeset viewer.