VirtualBox

Changeset 71227 in vbox


Ignore:
Timestamp:
Mar 6, 2018 9:50:54 AM (7 years ago)
Author:
vboxsync
Message:

bugref:8345. Fixed the variables names according to the Validation Kit Coding Guideline. Removed an unused variable.

File:
1 edited

Legend:

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

    r71226 r71227  
    6868    #createTestMachine
    6969    #
    70     def createTestMachine(self, oListOfImageNames):
     70    def createTestMachine(self):
    7171        oVM = self.oTstDrv.createTestVM('test-vm-move', 1, None, 4)
    7272        if oVM is None:
     
    108108        fRc = oSession.close() and fRc
    109109
    110         if fRc is True:
    111             oListOfImageNames = asFiles
    112         else:
     110        if fRc is False:
    113111            oVM = None
    114112
     
    207205        try:
    208206            #create test machine
    209             aListOfImageNames = []
    210             aMachine = self.createTestMachine(aListOfImageNames)
     207            aMachine = self.createTestMachine()
    211208
    212209            if aMachine is None:
     
    244241            os.mkdir(sMoveLoc, 0o775)
    245242            aoMediumAttachments = aMachine.getMediumAttachmentsOfController(sController)
    246             SubTstDrvMoveMedium1Instance = SubTstDrvMoveMedium1(self.oTstDrv)
    247             SubTstDrvMoveMedium1Instance.setLocation(sLoc, aoMediumAttachments)
     243            oSubTstDrvMoveMedium1Instance = SubTstDrvMoveMedium1(self.oTstDrv)
     244            oSubTstDrvMoveMedium1Instance.setLocation(sLoc, aoMediumAttachments)
    248245            fRc = self.moveVMToLocation(sMoveLoc, oSession.o.machine) and fRc
    249246
     
    258255            os.mkdir(sMoveLoc, 0o775)
    259256
    260             n = 5
    261             for counter in range(1,n+1):
     257            ic = 5
     258            for counter in range(1,ic+1):
    262259                strSnapshot = 'Snapshot' + str(counter)
    263260                fRc = fRc and oSession.takeSnapshot(strSnapshot)
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