Changeset 59605 in vbox for trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py
- Timestamp:
- Feb 8, 2016 5:19:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py
r59045 r59605 34 34 import os 35 35 import sys 36 import random 36 37 37 38 … … 54 55 55 56 ## @name The primary controller, to which the disk will be attached. 57 ksScsiController = 'SCSI Controller' 56 58 ksSataController = 'SATA Controller' 57 59 ksIdeController = 'IDE Controller' … … 137 139 oSession = oTestDrv.openSession(oVM); 138 140 if oSession is not None: 139 if self.sHddControllerType == self.ksSataController: 140 fRc = fRc and oSession.setStorageControllerType(vboxcon.StorageControllerType_IntelAhci, 141 self.sHddControllerType) 142 fRc = fRc and oSession.setStorageControllerPortCount(self.sHddControllerType, 1) 143 141 if self.sHddControllerType == self.ksIdeController: 142 fRc = fRc and oSession.setStorageControllerPortCount(self.sHddControllerType, 1); 143 else: 144 random.seed(); 145 self.sHddControllerType = random.choice([self.ksSataController, self.ksScsiController]); 146 147 if self.sHddControllerType == self.ksSataController: 148 fRc = fRc and oSession.setStorageControllerType(vboxcon.StorageControllerType_IntelAhci, 149 self.sHddControllerType); 150 elif self.sHddControllerType == self.ksScsiController: 151 fRc = fRc and oSession.setStorageControllerType(vboxcon.StorageControllerType_LsiLogic, 152 self.sHddControllerType); 144 153 try: 145 154 sHddPath = os.path.join(os.path.dirname(oVM.settingsFilePath),
Note:
See TracChangeset
for help on using the changeset viewer.