Changeset 71227 in vbox
- Timestamp:
- Mar 6, 2018 9:50:54 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM.py
r71226 r71227 68 68 #createTestMachine 69 69 # 70 def createTestMachine(self , oListOfImageNames):70 def createTestMachine(self): 71 71 oVM = self.oTstDrv.createTestVM('test-vm-move', 1, None, 4) 72 72 if oVM is None: … … 108 108 fRc = oSession.close() and fRc 109 109 110 if fRc is True: 111 oListOfImageNames = asFiles 112 else: 110 if fRc is False: 113 111 oVM = None 114 112 … … 207 205 try: 208 206 #create test machine 209 aListOfImageNames = [] 210 aMachine = self.createTestMachine(aListOfImageNames) 207 aMachine = self.createTestMachine() 211 208 212 209 if aMachine is None: … … 244 241 os.mkdir(sMoveLoc, 0o775) 245 242 aoMediumAttachments = aMachine.getMediumAttachmentsOfController(sController) 246 SubTstDrvMoveMedium1Instance = SubTstDrvMoveMedium1(self.oTstDrv)247 SubTstDrvMoveMedium1Instance.setLocation(sLoc, aoMediumAttachments)243 oSubTstDrvMoveMedium1Instance = SubTstDrvMoveMedium1(self.oTstDrv) 244 oSubTstDrvMoveMedium1Instance.setLocation(sLoc, aoMediumAttachments) 248 245 fRc = self.moveVMToLocation(sMoveLoc, oSession.o.machine) and fRc 249 246 … … 258 255 os.mkdir(sMoveLoc, 0o775) 259 256 260 n= 5261 for counter in range(1, n+1):257 ic = 5 258 for counter in range(1,ic+1): 262 259 strSnapshot = 'Snapshot' + str(counter) 263 260 fRc = fRc and oSession.takeSnapshot(strSnapshot)
Note:
See TracChangeset
for help on using the changeset viewer.