Changeset 97673 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
- Timestamp:
- Nov 24, 2022 11:46:15 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
r96407 r97673 108 108 # Generate a testcase lookup dictionary for use when working on 109 109 # argument variations. 110 self.dTestCases = dict();110 self.dTestCases = {}; 111 111 for oTestCase in self.aoTestCases: 112 112 self.dTestCases[oTestCase.idTestCase] = oTestCase; … … 114 114 115 115 # Generate a testgroup lookup dictionary. 116 self.dTestGroups = dict();116 self.dTestGroups = {}; 117 117 for oTestGroup in self.aoTestGroups: 118 118 self.dTestGroups[oTestGroup.idTestGroup] = oTestGroup; … … 125 125 # Prep the test groups. 126 126 for oTestGroup in self.aoTestGroups: 127 oTestGroup.aoTestCases = list();128 oTestGroup.dTestCases = dict();127 oTestGroup.aoTestCases = []; 128 oTestGroup.dTestCases = {}; 129 129 130 130 # Link testcases to their group, both directions. Prep testcases for … … 139 139 oTestGroup.aoTestCases.append(oTestCase); 140 140 oTestCase.oTestGroup = oTestGroup; 141 oTestCase.aoArgsVariations = list();141 oTestCase.aoArgsVariations = []; 142 142 143 143 # Associate testcase argument variations with their testcases (group) … … 177 177 Returns array of errors (see SchedulderBase.recreateQueue()). 178 178 """ 179 aoErrors = list();179 aoErrors = []; 180 180 for oTestGroup in self.aoTestGroups: 181 181 idPreReq = oTestGroup.idTestGroupPreReq; 182 182 if idPreReq is None: 183 oTestGroup.aidTestGroupPreReqs = list();183 oTestGroup.aidTestGroupPreReqs = []; 184 184 continue; 185 185 … … 214 214 Returns array of errors (see SchedulderBase.recreateQueue()). 215 215 """ 216 aoErrors = list();216 aoErrors = []; 217 217 for oTestGroup in self.aoTestGroups: 218 218 for oTestCase in oTestGroup.aoTestCases: … … 461 461 self._fBlacklisted = None if fMaybeBlacklisted is True else False; 462 462 self.fRemoved = False; 463 self._dPreReqDecisions = dict();463 self._dPreReqDecisions = {}; 464 464 465 465 def remove(self): … … 531 531 self._tsSecStart = tsSecStart if tsSecStart is not None else utils.timestampSecond(); 532 532 self.oBuildCache = self.BuildCache(); 533 self.dTestGroupMembers = dict();533 self.dTestGroupMembers = {}; 534 534 535 535 @staticmethod … … 634 634 # little for gang gathering). 635 635 # 636 aoItems = list();636 aoItems = []; 637 637 if not oData.oSchedGroup.fEnabled: 638 638 self.msgInfo('Disabled.');
Note:
See TracChangeset
for help on using the changeset viewer.