Changeset 71554 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Mar 28, 2018 6:38:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r71550 r71554 275 275 return self.oTstDrv.asRsrcs 276 276 277 # All disks attached to VM are located inside the VM's folder. 278 # There are no any snapshots and logs. 277 279 def __testScenario_2(self, oSession, oMachine, sNewLoc, sOldLoc): 278 280 … … 308 310 return fRc 309 311 312 # There are snapshots 310 313 def __testScenario_3(self, oSession, oMachine, sNewLoc): 311 314 … … 348 351 return fRc 349 352 353 # There are one or more save state files in the snapshots folder 354 # and some files in the logs folder. 355 # Here we run VM, next stop it in the "save" state. 356 # And next move VM 350 357 def __testScenario_4(self, oMachine, sNewLoc): 351 358 … … 403 410 return fRc 404 411 412 # There is an ISO image (.iso) attached to the VM. 413 # Prerequisites - there is IDE Controller and there are no any images attached to it. 405 414 def __testScenario_5(self, oMachine, sNewLoc, sOldLoc): 406 415 … … 462 471 return fRc 463 472 473 # There is a floppy image (.img) attached to the VM. 474 # Prerequisites - there is Floppy Controller and there are no any images attached to it. 464 475 def __testScenario_6(self, oMachine, sNewLoc, sOldLoc): 465 476 … … 482 493 shutil.copy(sFloppyLoc, sOldLoc) 483 494 484 # 495 #attach floppy image 485 496 if fRc is True: 486 497 #set actual floppy location … … 577 588 578 589 ############# 1 case. ########################################################################################## 579 # 580 # 581 # 590 # All disks attached to VM are located outside the VM's folder. 591 # There are no any snapshots and logs. 592 # In this case only VM setting file should be moved (.vbox file) 582 593 for s in self.asImagesNames: 583 594 reporter.log('"%s"' % (s,)) … … 603 614 604 615 ############# 2 case. ########################################################################################## 605 # 606 # 616 # All disks attached to VM are located inside the VM's folder. 617 # There are no any snapshots and logs. 607 618 sOldLoc = sNewLoc + oMachine.name + os.sep 608 619 sNewLoc = os.path.join(sOrigLoc, 'moveFolder_2d_scenario') … … 614 625 615 626 ############# 3 case. ########################################################################################## 616 # 627 # There are snapshots. 617 628 sOldLoc = sNewLoc + oMachine.name + os.sep 618 629 sNewLoc = os.path.join(sOrigLoc, 'moveFolder_3d_scenario') … … 624 635 625 636 ############# 4 case. ########################################################################################## 626 # 627 # 628 # 629 # 637 # There are one or more save state files in the snapshots folder 638 # and some files in the logs folder. 639 # Here we run VM, next stop it in the "save" state. 640 # And next move VM 630 641 631 642 sOldLoc = sNewLoc + oMachine.name + os.sep … … 645 656 646 657 ############## 5 case. ########################################################################################## 647 # There is an ISO image (.iso) attached to the VM.648 # Prerequisites - there is IDE Controller and there are no any images attached to it.649 650 sOldLoc = sNewLoc + os.sep + oMachine.name + os.sep658 # There is an ISO image (.iso) attached to the VM. 659 # Prerequisites - there is IDE Controller and there are no any images attached to it. 660 661 sOldLoc = sNewLoc + os.sep + oMachine.name 651 662 sNewLoc = os.path.join(sOrigLoc, 'moveFolder_5th_scenario') 652 663 os.mkdir(sNewLoc, 0o775) … … 656 667 657 668 ############# 6 case. ########################################################################################## 658 # There is a floppy image (.img) attached to the VM.659 # Prerequisites - there is Floppy Controller and there are no any images attached to it.660 661 sOldLoc = sNewLoc + os.sep + oMachine.name + os.sep669 # There is a floppy image (.img) attached to the VM. 670 # Prerequisites - there is Floppy Controller and there are no any images attached to it. 671 672 sOldLoc = sNewLoc + os.sep + oMachine.name 662 673 sNewLoc = os.path.join(sOrigLoc, 'moveFolder_6th_scenario') 663 674 os.mkdir(sNewLoc, 0o775)
Note:
See TracChangeset
for help on using the changeset viewer.