Changeset 94129 in vbox for trunk/src/VBox/ValidationKit/testmanager/batch/filearchiver.py
- Timestamp:
- Mar 8, 2022 2:57:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/batch/filearchiver.py
r93115 r94129 123 123 124 124 utils.noxcptDeleteFile(sZipFileNm + '.tmp'); 125 oZipFile = zipfile.ZipFile(sZipFileNm + '.tmp', 'w', zipfile.ZIP_DEFLATED, allowZip64 = True); 126 127 for sFile in asFiles: 128 sSuff = os.path.splitext(sFile)[1]; 129 if sSuff in [ '.png', '.webm', '.gz', '.bz2', '.zip', '.mov', '.avi', '.mpg', '.gif', '.jpg' ]: 130 ## @todo Consider storing these files outside the zip if they are a little largish. 131 self.dprint('TestSet %d: Storing %s...' % (idTestSet, sFile)); 132 oZipFile.write(sSrcFileBase + sFile, sFile, zipfile.ZIP_STORED); 133 else: 134 self.dprint('TestSet %d: Deflating %s...' % (idTestSet, sFile)); 135 oZipFile.write(sSrcFileBase + sFile, sFile, zipfile.ZIP_DEFLATED); 136 137 oZipFile.close(); 125 with zipfile.ZipFile(sZipFileNm + '.tmp', 'w', zipfile.ZIP_DEFLATED, allowZip64 = True) as oZipFile: 126 for sFile in asFiles: 127 sSuff = os.path.splitext(sFile)[1]; 128 if sSuff in [ '.png', '.webm', '.gz', '.bz2', '.zip', '.mov', '.avi', '.mpg', '.gif', '.jpg' ]: 129 ## @todo Consider storing these files outside the zip if they are a little largish. 130 self.dprint('TestSet %d: Storing %s...' % (idTestSet, sFile)); 131 oZipFile.write(sSrcFileBase + sFile, sFile, zipfile.ZIP_STORED); 132 else: 133 self.dprint('TestSet %d: Deflating %s...' % (idTestSet, sFile)); 134 oZipFile.write(sSrcFileBase + sFile, sFile, zipfile.ZIP_DEFLATED); 138 135 139 136 # … … 216 213 # 217 214 fRc = True; 218 for idTestSet in dTestSets:215 for idTestSet, oTestSet in dTestSets.items(): 219 216 try: 220 if self._processTestSet(idTestSet, dTestSets[idTestSet], sCurDir) is not True:217 if self._processTestSet(idTestSet, oTestSet, sCurDir) is not True: 221 218 fRc = False; 222 219 except:
Note:
See TracChangeset
for help on using the changeset viewer.