Changeset 71729 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Apr 6, 2018 10:07:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r71682 r71729 218 218 reporter.log('Item location "%s" isn\'t correct' % (eachItem)) 219 219 220 reporter.log('####### Reference locations: #######') 221 for eachItem in aReferences: 222 reporter.log(' "%s"' % (eachItem)) 223 220 224 if len (intersection) != len (aActuals): 221 225 reporter.log('Not all items in the right location. Check it.') … … 270 274 if self.oTstDrv.asRsrcs is None: 271 275 self.oTstDrv.asRsrcs = [] 272 self.oTstDrv.asRsrcs.append('5.3 /isos/tdMoveVM.iso')273 self.oTstDrv.asRsrcs.append('5.3 /floppy/tdMoveVM.img')276 self.oTstDrv.asRsrcs.append('5.3' + os.sep + 'isos' + os.sep + 'tdMoveVM1.iso') 277 self.oTstDrv.asRsrcs.append('5.3' + os.sep + 'floppy' + os.sep + 'tdMoveVM1.img') 274 278 275 279 return self.oTstDrv.asRsrcs … … 369 373 #call Session::saveState(), already closes session unless it failed 370 374 fRc = oSession.saveState() 371 self.oTstDrv.terminateVmBySession(oSession) 372 373 if fRc: 375 if fRc is True: 376 reporter.log("Machine is in saved state") 377 378 fRc = self.oTstDrv.terminateVmBySession(oSession) 379 380 if fRc is True or False: 374 381 #create a new Session object for moving VM 375 382 oSession = self.oTstDrv.openSession(oMachine) … … 423 430 oSession = self.oTstDrv.openSession(oMachine) 424 431 425 sISOLoc = '5.3/isos/tdMoveVM1.iso'432 sISOLoc = self.asRsrcs[0]#'5.3/isos/tdMoveVM1.iso' 426 433 reporter.log("sHost is '%s', sResourcePath is '%s'" % (self.oTstDrv.sHost, self.oTstDrv.sResourcePath)) 427 434 sISOLoc = self.oTstDrv.getFullResourceName(sISOLoc) 435 reporter.log("sISOLoc is '%s'" % (sISOLoc,)) 428 436 429 437 if not os.path.exists(sISOLoc): … … 438 446 #set actual ISO location 439 447 sISOLoc = sOldLoc + os.sep + sISOImageName 448 reporter.log("sISOLoc is '%s'" % (sISOLoc,)) 449 if not os.path.exists(sISOLoc): 450 reporter.log('ISO file does not exist at "%s"' % (sISOLoc,)) 451 fRc = False 452 440 453 sController=self.dsKeys['ISOImage'] 441 454 aoMediumAttachments = oMachine.getMediumAttachmentsOfController(sController) … … 483 496 oSession = self.oTstDrv.openSession(oMachine) 484 497 485 sFloppyLoc = '5.3/floppy/tdMoveVM1.img'498 sFloppyLoc = self.asRsrcs[1]#'5.3/floppy/tdMoveVM1.img' 486 499 sFloppyLoc = self.oTstDrv.getFullResourceName(sFloppyLoc) 487 500 … … 507 520 fRc = self.checkLocation(oSession.o.machine, dsReferenceFiles) 508 521 if fRc is False: 509 reporter.testFailure('!!!!!!!!!!!!!!!!!! 5th scenario: Check locations failed... !!!!!!!!!!!!!!!!!!')522 reporter.testFailure('!!!!!!!!!!!!!!!!!! 6th scenario: Check locations failed... !!!!!!!!!!!!!!!!!!') 510 523 else: 511 reporter.testFailure('!!!!!!!!!!!!!!!!!! 5th scenario: Move VM failed... !!!!!!!!!!!!!!!!!!')524 reporter.testFailure('!!!!!!!!!!!!!!!!!! 6th scenario: Move VM failed... !!!!!!!!!!!!!!!!!!') 512 525 else: 513 reporter.testFailure('!!!!!!!!!!!!!!!!!! 5th scenario: Attach floppy image failed... !!!!!!!!!!!!!!!!!!')526 reporter.testFailure('!!!!!!!!!!!!!!!!!! 6th scenario: Attach floppy image failed... !!!!!!!!!!!!!!!!!!') 514 527 515 528 #detach floppy image
Note:
See TracChangeset
for help on using the changeset viewer.