VirtualBox

Ignore:
Timestamp:
Mar 28, 2018 6:38:33 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8345. scenarios 5 and 6: the double slashes in the path were removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py

    r71550 r71554  
    275275        return self.oTstDrv.asRsrcs
    276276
     277    # All disks attached to VM are located inside the VM's folder.
     278    # There are no any snapshots and logs.
    277279    def __testScenario_2(self, oSession, oMachine, sNewLoc, sOldLoc):
    278280
     
    308310        return fRc
    309311
     312    # There are snapshots
    310313    def __testScenario_3(self, oSession, oMachine, sNewLoc):
    311314
     
    348351        return fRc
    349352
     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
    350357    def __testScenario_4(self, oMachine, sNewLoc):
    351358
     
    403410        return fRc
    404411
     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.
    405414    def __testScenario_5(self, oMachine, sNewLoc, sOldLoc):
    406415
     
    462471        return fRc
    463472
     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.
    464475    def __testScenario_6(self, oMachine, sNewLoc, sOldLoc):
    465476
     
    482493        shutil.copy(sFloppyLoc, sOldLoc)
    483494
    484         # attach floppy image
     495        #attach floppy image
    485496        if fRc is True:
    486497            #set actual floppy location
     
    577588
    578589############# 1 case. ##########################################################################################
    579             #   All disks attached to VM are located outside the VM's folder.
    580             #   There are no any snapshots and logs.
    581             #   In this case only VM setting file should be moved (.vbox file)
     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)
    582593            for s in self.asImagesNames:
    583594                reporter.log('"%s"' % (s,))
     
    603614
    604615############# 2 case. ##########################################################################################
    605             #   All disks attached to VM are located inside the VM's folder.
    606             #   There are no any snapshots and logs.
     616            # All disks attached to VM are located inside the VM's folder.
     617            # There are no any snapshots and logs.
    607618            sOldLoc = sNewLoc + oMachine.name + os.sep
    608619            sNewLoc = os.path.join(sOrigLoc, 'moveFolder_2d_scenario')
     
    614625
    615626############# 3 case. ##########################################################################################
    616             #   There are snapshots.
     627            # There are snapshots.
    617628            sOldLoc = sNewLoc + oMachine.name + os.sep
    618629            sNewLoc = os.path.join(sOrigLoc, 'moveFolder_3d_scenario')
     
    624635
    625636############# 4 case. ##########################################################################################
    626             #   There are one or more save state files in the snapshots folder
    627             #   and some files in the logs folder.
    628             #   Here we run VM, next stop it in the "save" state.
    629             #   And next move VM
     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
    630641
    631642            sOldLoc = sNewLoc + oMachine.name + os.sep
     
    645656
    646657############## 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.sep
     658            # 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
    651662            sNewLoc = os.path.join(sOrigLoc, 'moveFolder_5th_scenario')
    652663            os.mkdir(sNewLoc, 0o775)
     
    656667
    657668############# 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.sep
     669            # 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
    662673            sNewLoc = os.path.join(sOrigLoc, 'moveFolder_6th_scenario')
    663674            os.mkdir(sNewLoc, 0o775)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette