Changeset 86992 in vbox for trunk/src/VBox/ValidationKit/testmanager
- Timestamp:
- Nov 26, 2020 2:58:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py
r86990 r86992 76 76 oParser.add_option('--load-dump-into-database', dest = 'fLoadDumpIntoDatabase', action = 'store_true', 77 77 default = False, help = 'For loading instead of dumping.'); 78 oParser.add_option('--lmza', dest = 'fLmza', action = 'store_true', 79 default = False, help = 'Use LMZA instead of Deflate compression.'); 78 80 79 81 (self.oConfig, _) = oParser.parse_args(); … … 140 142 """ Does the dumping of the database. """ 141 143 142 oZipFile = zipfile.ZipFile(self.oConfig.sFilename, 'w', zipfile.ZIP_DEFLATED); 144 enmCompression = zipfile.ZIP_DEFLATED; 145 if self.oConfig.fLmza: 146 enmCompression = getattr(zipfile. 'ZIP_LZMA', zipfile.ZIP_DEFLATED); 147 oZipFile = zipfile.ZipFile(self.oConfig.sFilename, 'w', enmCompression); 143 148 144 149 oDb.begin();
Note:
See TracChangeset
for help on using the changeset viewer.