Changeset 71390 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Mar 20, 2018 10:37:27 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121354
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r71387 r71390 288 288 if fRc is False: 289 289 reporter.log('Couldn\'t close machine session') 290 290 291 291 #Run VM and get new Session object 292 292 oSession = self.oTstDrv.startVm(oMachine) 293 293 294 294 #some time interval should be here for not closing VM just after start 295 295 time.sleep(1) 296 296 297 297 if oMachine.state != self.oTstDrv.oVBoxMgr.constants.MachineState_Running: 298 298 reporter.log("Machine '%s' is not Running" % (oMachine.name)) … … 303 303 self.oTstDrv.terminateVmBySession(oSession) 304 304 305 if fRc: 305 if fRc: 306 306 sLoc = sMoveLoc + os.sep + oMachine.name + os.sep 307 307 sMoveLoc = os.path.join(sOrigLoc, 'moveFolder_4th_scenario') 308 308 os.mkdir(sMoveLoc, 0o775) 309 309 310 310 #create a new Session object for moving VM 311 311 oSession = self.oTstDrv.openSession(oMachine) 312 312 fRc = self.moveVMToLocation(sMoveLoc, oSession.o.machine) and fRc 313 313 314 # cleaning up: get rid of saved state 314 # cleaning up: get rid of saved state 315 315 fRc = fRc and oSession.o.machine.discardSavedState(True) 316 316 if fRc is False:
Note:
See TracChangeset
for help on using the changeset viewer.