Changeset 86985 in vbox
- Timestamp:
- Nov 26, 2020 1:57:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py
r83363 r86985 102 102 'TestBoxesInSchedGroups', # ? 103 103 'SchedQueues', 104 'Builds', # ??105 104 'VcsRevisions', # ? 106 105 'TestResultStrTab', # 36K rows, never mind complicated then. … … 118 117 'TestResultValues', # 2016-05-25: ca. 3728 MB 119 118 'TestResultFailures', 119 'Builds', 120 120 'SystemLog', 121 121 ]; … … 184 184 print('Last test result ID: %s' % (idLastTestResult,)); 185 185 186 # Get the build ID range. 187 oDb.execute('SELECT MIN(idBuild), MIN(idBuildTestSuite) FROM TestSets WHERE idTestSet >= %s', (idFirstTestSet,)); 188 idFirstBuild = 0; 189 if oDb.getRowCount() > 0: 190 idFirstBuild = min(oDb.fetchOne()); 191 print('First build ID: %s' % (idFirstBuild,)); 186 192 187 193 # Tables with idTestSet member. … … 214 220 'COPY (SELECT * FROM ' + sTable + ' WHERE tsCreated >= %s) TO STDOUT WITH (FORMAT TEXT)', 215 221 (tsEffective,)); 222 223 # The builds table. 224 for sTable in [ 'Builds', ]: 225 self._doCopyTo(sTable, oZipFile, oDb, 226 'COPY (SELECT * FROM ' + sTable + ' WHERE idBuild >= %s) TO STDOUT WITH (FORMAT TEXT)', 227 (idFirstBuild,)); 216 228 217 229 oZipFile.close();
Note:
See TracChangeset
for help on using the changeset viewer.