Changeset 61469 in vbox for trunk/src/VBox/ValidationKit/testmanager/core
- Timestamp:
- Jun 5, 2016 3:57:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r61468 r61469 937 937 ' array_agg(TestResultFailures.sComment ORDER BY TestResultFailures.idTestResult),\n' \ 938 938 ' (TestSets.tsDone IS NULL) SortRunningFirst' + sSortColumns + '\n' \ 939 'FROM BuildCategories,\n' \ 940 ' Builds,\n' \ 941 ' TestBoxesWithStrings,\n' \ 942 ' TestResults,\n' \ 943 ' TestCases,\n' \ 944 ' TestCaseArgs,\n' \ 945 ' ( SELECT TestSets.idTestSet AS idTestSet,\n' \ 939 'FROM ( SELECT TestSets.idTestSet AS idTestSet,\n' \ 946 940 ' TestSets.tsDone AS tsDone,\n' \ 947 941 ' TestSets.tsCreated AS tsCreated,\n' \ … … 980 974 981 975 sQuery += ' ) AS TestSets\n' \ 976 ' INNER JOIN TestBoxesWithStrings\n' \ 977 ' ON TestSets.idGenTestBox = TestBoxesWithStrings.idGenTestBox' \ 982 978 ' LEFT OUTER JOIN Builds AS TestSuiteBits\n' \ 983 979 ' ON TestSets.idBuildTestSuite = TestSuiteBits.idBuild\n' \ 984 980 ' LEFT OUTER JOIN TestResultFailures\n' \ 985 981 ' ON TestSets.idTestSet = TestResultFailures.idTestSet\n' \ 986 ' AND TestResultFailures.tsExpire = \'infinity\'::TIMESTAMP \n';982 ' AND TestResultFailures.tsExpire = \'infinity\'::TIMESTAMP'; 987 983 if sSortOrderBy is not None and sSortOrderBy.find('FailureReason') >= 0: 988 984 sQuery += '\n' \ 989 985 ' LEFT OUTER JOIN FailureReasons\n' \ 990 986 ' ON TestResultFailures.idFailureReason = FailureReasons.idFailureReason\n' \ 991 ' AND FailureReasons.tsExpire = \'infinity\'::TIMESTAMP\n'; 987 ' AND FailureReasons.tsExpire = \'infinity\'::TIMESTAMP'; 988 sQuery += ',\n' \ 989 ' BuildCategories,\n' \ 990 ' Builds,\n' \ 991 ' TestResults,\n' \ 992 ' TestCases,\n' \ 993 ' TestCaseArgs\n'; 992 994 sQuery += 'WHERE TestSets.idTestSet = TestResults.idTestSet\n' \ 993 995 ' AND TestResults.idTestResultParent is NULL\n' \ … … 996 998 ' AND Builds.tsEffective <= TestSets.tsCreated\n' \ 997 999 ' AND Builds.idBuildCategory = BuildCategories.idBuildCategory\n' \ 998 ' AND TestSets.idGenTestBox = TestBoxesWithStrings.idGenTestBox\n' \999 1000 ' AND TestSets.idGenTestCase = TestCases.idGenTestCase\n' \ 1000 1001 ' AND TestSets.idGenTestCaseArgs = TestCaseArgs.idGenTestCaseArgs\n'; … … 1181 1182 1182 1183 self._oDb.execute('SELECT TestBoxesWithStrings.*\n' 1183 'FROM TestBoxesWithStrings,\n' 1184 ' ( SELECT idTestBox AS idTestBox,\n' 1184 'FROM ( SELECT idTestBox AS idTestBox,\n' 1185 1185 ' MAX(idGenTestBox) AS idGenTestBox\n' 1186 1186 ' FROM TestSets\n' … … 1188 1188 ' GROUP BY idTestBox\n' 1189 1189 ' ) AS TestBoxIDs\n' 1190 'WHERE TestBoxesWithStrings.idGenTestBox = TestBoxIDs.idGenTestBox\n' 1190 ' INNER JOIN TestBoxesWithStrings\n' 1191 ' ON TestBoxesWithStrings.idGenTestBox = TestBoxIDs.idGenTestBox\n' 1191 1192 'ORDER BY TestBoxesWithStrings.sName\n' ); 1192 1193 aoRet = [] … … 1202 1203 1203 1204 self._oDb.execute('SELECT TestCases.*\n' 1204 'FROM TestCases,\n' 1205 ' ( SELECT idTestCase AS idTestCase,\n' 1205 'FROM ( SELECT idTestCase AS idTestCase,\n' 1206 1206 ' MAX(idGenTestCase) AS idGenTestCase\n' 1207 1207 ' FROM TestSets\n' … … 1209 1209 ' GROUP BY idTestCase\n' 1210 1210 ' ) AS TestCasesIDs\n' 1211 ' WHERETestCases.idGenTestCase = TestCasesIDs.idGenTestCase\n'1211 ' INNER JOIN TestCases ON TestCases.idGenTestCase = TestCasesIDs.idGenTestCase\n' 1212 1212 'ORDER BY TestCases.sName\n' ); 1213 1213 aoRet = []; … … 1223 1223 1224 1224 self._oDb.execute('SELECT SchedGroups.*\n' 1225 'FROM SchedGroups,\n' 1226 ' ( SELECT TestBoxes.idSchedGroup AS idSchedGroup,\n' 1225 'FROM ( SELECT TestBoxes.idSchedGroup AS idSchedGroup,\n' 1227 1226 ' MAX(TestSets.tsCreated) AS tsNow\n' 1228 1227 ' FROM TestSets,\n' … … 1232 1231 ' GROUP BY idSchedGroup\n' 1233 1232 ' ) AS SchedGroupIDs\n' 1234 'WHERE SchedGroups.idSchedGroup = SchedGroupIDs.idSchedGroup\n' 1235 ' AND SchedGroups.tsExpire > SchedGroupIDs.tsNow\n' 1236 ' AND SchedGroups.tsEffective <= SchedGroupIDs.tsNow\n' 1233 ' INNER JOIN SchedGroups\n' 1234 ' ON SchedGroups.idSchedGroup = SchedGroupIDs.idSchedGroup\n' 1235 ' AND SchedGroups.tsExpire > SchedGroupIDs.tsNow\n' 1236 ' AND SchedGroups.tsEffective <= SchedGroupIDs.tsNow\n' 1237 1237 'ORDER BY SchedGroups.sName\n' ); 1238 1238 aoRet = []
Note:
See TracChangeset
for help on using the changeset viewer.