Changeset 97121 in vbox for trunk/src/VBox/ValidationKit/testmanager/db
- Timestamp:
- Oct 12, 2022 4:52:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py
r97120 r97121 263 263 """ Does the loading of the dumped data into the database. """ 264 264 265 oZipFile = zipfile.ZipFile(self.oConfig.sFilename, 'r'); 265 try: 266 oZipFile = zipfile.ZipFile(self.oConfig.sFilename, 'r'); 267 except: 268 print('error: Dump file "%s" cannot be opened! Use "-f <file>" to specify a file.' % (self.oConfig.sFilename,)); 269 return 1; 266 270 267 271 asTablesInLoadOrder = [ … … 310 314 print('error: Table %s has %u rows which is more than %u - refusing to delete and load.' 311 315 % (sTable, cRows, cMaxRows,)); 312 print('info: Please drop and recreate the database before loading!') 316 print('info: Please drop and recreate the database before loading!'); 313 317 return 1; 314 318 … … 387 391 if __name__ == '__main__': 388 392 sys.exit(PartialDbDump().main()); 389
Note:
See TracChangeset
for help on using the changeset viewer.