- Timestamp:
- Mar 28, 2018 3:54:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r71547 r71548 172 172 173 173 fRc = True 174 iLen = 0175 174 176 175 for key, value in self.dsKeys.iteritems(): … … 237 236 asStateFilesList = set() 238 237 sFolder = oMachine.snapshotFolder 239 for file in os.listdir(sFolder):240 if file.endswith(".sav"):241 sF ile = os.path.join(sFolder, file)242 asStateFilesList.add(sF ile)238 for sFile in os.listdir(sFolder): 239 if sFile.endswith(".sav"): 240 sFullPath = os.path.join(sFolder, sFile) 241 asStateFilesList.add(sFullPath) 243 242 if fPrint is True: 244 reporter.log("State file is %s" % (sF ile))243 reporter.log("State file is %s" % (sFullPath)) 245 244 return asStateFilesList 246 245 … … 248 247 asSnapshotsFilesList = set() 249 248 sFolder = oMachine.snapshotFolder 250 for file in os.listdir(sFolder):251 if file.endswith(".sav") is False:252 sF ile = os.path.join(sFolder, file)253 asSnapshotsFilesList.add(sF ile)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) 254 253 if fPrint is True: 255 reporter.log("Snapshot file is %s" % (sF ile))254 reporter.log("Snapshot file is %s" % (sFullPath)) 256 255 return asSnapshotsFilesList 257 256 … … 259 258 asLogFilesList = set() 260 259 sFolder = oMachine.logFolder 261 for file in os.listdir(sFolder):262 if file.endswith(".log"):263 sF ile = os.path.join(sFolder, file)264 asLogFilesList.add(sF ile)260 for sFile in os.listdir(sFolder): 261 if sFile.endswith(".log"): 262 sFullPath = os.path.join(sFolder, sFile) 263 asLogFilesList.add(sFullPath) 265 264 if fPrint is True: 266 reporter.log("Log file is %s" % (sF ile))265 reporter.log("Log file is %s" % (sFullPath)) 267 266 return asLogFilesList 268 267 … … 596 595 for oAttachment in aoMediumAttachments: 597 596 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 + 599 598 'Snapshots' + os.sep + sRes[2]) 600 599
Note:
See TracChangeset
for help on using the changeset viewer.