VirtualBox

Changeset 71548 in vbox for trunk


Ignore:
Timestamp:
Mar 28, 2018 3:54:20 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8345. Coding style fixes.

File:
1 edited

Legend:

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

    r71547 r71548  
    172172
    173173        fRc = True
    174         iLen = 0
    175174
    176175        for key, value in self.dsKeys.iteritems():
     
    237236        asStateFilesList = set()
    238237        sFolder = oMachine.snapshotFolder
    239         for file in os.listdir(sFolder):
    240             if file.endswith(".sav"):
    241                 sFile = os.path.join(sFolder, file)
    242                 asStateFilesList.add(sFile)
     238        for sFile in os.listdir(sFolder):
     239            if sFile.endswith(".sav"):
     240                sFullPath = os.path.join(sFolder, sFile)
     241                asStateFilesList.add(sFullPath)
    243242                if fPrint is True:
    244                     reporter.log("State file is %s" % (sFile))
     243                    reporter.log("State file is %s" % (sFullPath))
    245244        return asStateFilesList
    246245
     
    248247        asSnapshotsFilesList = set()
    249248        sFolder = oMachine.snapshotFolder
    250         for file in os.listdir(sFolder):
    251             if file.endswith(".sav") is False:
    252                 sFile = os.path.join(sFolder, file)
    253                 asSnapshotsFilesList.add(sFile)
     249        for sFile in os.listdir(sFolder):
     250            if sFile.endswith(".sav") is False:
     251                sFullPath = os.path.join(sFolder, sFile)
     252                asSnapshotsFilesList.add(sFullPath)
    254253                if fPrint is True:
    255                     reporter.log("Snapshot file is %s" % (sFile))
     254                    reporter.log("Snapshot file is %s" % (sFullPath))
    256255        return asSnapshotsFilesList
    257256
     
    259258        asLogFilesList = set()
    260259        sFolder = oMachine.logFolder
    261         for file in os.listdir(sFolder):
    262             if file.endswith(".log"):
    263                 sFile = os.path.join(sFolder, file)
    264                 asLogFilesList.add(sFile)
     260        for sFile in os.listdir(sFolder):
     261            if sFile.endswith(".log"):
     262                sFullPath = os.path.join(sFolder, sFile)
     263                asLogFilesList.add(sFullPath)
    265264                if fPrint is True:
    266                     reporter.log("Log file is %s" % (sFile))
     265                    reporter.log("Log file is %s" % (sFullPath))
    267266        return asLogFilesList
    268267
     
    596595                for oAttachment in aoMediumAttachments:
    597596                    sRes = oAttachment.medium.location.rpartition(os.sep)
    598                     dsReferenceFiles['SnapshotFile'].add(sNewLoc + os.sep + oMachine.name + os.sep + 
     597                    dsReferenceFiles['SnapshotFile'].add(sNewLoc + os.sep + oMachine.name + os.sep +
    599598                                                         'Snapshots' + os.sep + sRes[2])
    600599
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