Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/testmanager/core
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131247
- Location:
- trunk/src/VBox/ValidationKit/testmanager/core
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/base.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 """ … … 44 44 # Python 3 hacks: 45 45 if sys.version_info[0] >= 3: 46 long = int # pylint: disable= W0622,C010346 long = int # pylint: disable=redefined-builtin,invalid-name 47 47 48 48 … … 51 51 For exceptions raised by any TestManager component. 52 52 """ 53 pass; 53 pass; # pylint: disable=unnecessary-pass 54 54 55 55 … … 59 59 Used by ModelLogicBase decendants. 60 60 """ 61 pass; 61 pass; # pylint: disable=unnecessary-pass 62 62 63 63 … … 67 67 Used by ModelLogicBase decendants. 68 68 """ 69 pass; 69 pass; # pylint: disable=unnecessary-pass 70 70 71 71 … … 75 75 Used by ModelLogicBase decendants. 76 76 """ 77 pass; 77 pass; # pylint: disable=unnecessary-pass 78 78 79 79 … … 83 83 Used by ModelLogicBase decendants. 84 84 """ 85 pass; 85 pass; # pylint: disable=unnecessary-pass 86 86 87 87 … … 91 91 Used by ModelLogicBase decendants. 92 92 """ 93 pass; 93 pass; # pylint: disable=unnecessary-pass 94 94 95 95 … … 100 100 Used by ModelLogicBase decendants. 101 101 """ 102 pass; 103 104 105 class ModelBase(object): # pylint: disable= R0903102 pass; # pylint: disable=unnecessary-pass 103 104 105 class ModelBase(object): # pylint: disable=too-few-public-methods 106 106 """ 107 107 Something all classes in the logical model inherits from. … … 115 115 116 116 117 class ModelDataBase(ModelBase): # pylint: disable= R0903117 class ModelDataBase(ModelBase): # pylint: disable=too-few-public-methods 118 118 """ 119 119 Something all classes in the data classes in the logical model inherits from. … … 198 198 if sPrefix in ['id', 'uid', 'i', 'off', 'pct']: 199 199 return [-1, '', '-1',]; 200 elif sPrefix in ['l', 'c',]:200 if sPrefix in ['l', 'c',]: 201 201 return [long(-1), '', '-1',]; 202 elif sPrefix == 'f':202 if sPrefix == 'f': 203 203 return ['',]; 204 elif sPrefix in ['enm', 'ip', 's', 'ts', 'uuid']:204 if sPrefix in ['enm', 'ip', 's', 'ts', 'uuid']: 205 205 return ['',]; 206 elif sPrefix in ['ai', 'aid', 'al', 'as']:206 if sPrefix in ['ai', 'aid', 'al', 'as']: 207 207 return [[], '', None]; ## @todo ?? 208 elif sPrefix == 'bm':208 if sPrefix == 'bm': 209 209 return ['', [],]; ## @todo bitmaps. 210 210 raise TMExceptionBase('Unable to classify "%s" (prefix %s)' % (sAttr, sPrefix)); … … 370 370 371 371 # Check the NULL requirements of the primary ID(s) for the 'add' and 'edit' actions. 372 if enmValidateFor == ModelDataBase.ksValidateFor_Add \373 or enmValidateFor == ModelDataBase.ksValidateFor_AddForeignId \374 or enmValidateFor == ModelDataBase.ksValidateFor_Edit:372 if enmValidateFor in (ModelDataBase.ksValidateFor_Add, 373 ModelDataBase.ksValidateFor_AddForeignId, 374 ModelDataBase.ksValidateFor_Edit,): 375 375 fMustBeNull = enmValidateFor == ModelDataBase.ksValidateFor_Add; 376 376 sAttr = getattr(self, 'ksIdAttr', None); … … 572 572 if iValue < iMin: 573 573 return (iValue, 'Value too small (min %d)' % (iMin,)); 574 elif iValue > iMax:574 if iValue > iMax: 575 575 return (iValue, 'Value too high (max %d)' % (iMax,)); 576 576 return (iValue, None); … … 596 596 if lMin is not None and lValue < lMin: 597 597 return (lValue, 'Value too small (min %d)' % (lMin,)); 598 elif lMax is not None and lValue > lMax:598 if lMax is not None and lValue > lMax: 599 599 return (lValue, 'Value too high (max %d)' % (lMax,)); 600 600 return (lValue, None); … … 662 662 663 663 try: 664 socket.inet_pton(socket.AF_INET, sValue); # pylint: disable= E1101664 socket.inet_pton(socket.AF_INET, sValue); # pylint: disable=no-member 665 665 except: 666 666 try: 667 socket.inet_pton(socket.AF_INET6, sValue); # pylint: disable= E1101667 socket.inet_pton(socket.AF_INET6, sValue); # pylint: disable=no-member 668 668 except: 669 669 return (sValue, 'Not a valid IP address.'); … … 1067 1067 1068 1068 1069 # pylint: disable= E1101,C0111,R09031069 # pylint: disable=no-member,missing-docstring,too-few-public-methods 1070 1070 class ModelDataBaseTestCase(unittest.TestCase): 1071 1071 """ … … 1241 1241 def __init__(self): 1242 1242 ModelBase.__init__(self); 1243 self.aCriteria = [] ;# type: list[FilterCriterion]1243 self.aCriteria = [] # type: list[FilterCriterion] 1244 1244 1245 1245 def _initFromParamsWorker(self, oDisp, oCriterion): … … 1285 1285 1286 1286 1287 class ModelLogicBase(ModelBase): # pylint: disable= R09031287 class ModelLogicBase(ModelBase): # pylint: disable=too-few-public-methods 1288 1288 """ 1289 1289 Something all classes in the logic classes the logical model inherits from. … … 1328 1328 1329 1329 1330 class AttributeChangeEntry(object): # pylint: disable= R09031330 class AttributeChangeEntry(object): # pylint: disable=too-few-public-methods 1331 1331 """ 1332 1332 Data class representing the changes made to one attribute. … … 1340 1340 self.sOldText = sOldText; 1341 1341 1342 class AttributeChangeEntryPre(AttributeChangeEntry): # pylint: disable= R09031342 class AttributeChangeEntryPre(AttributeChangeEntry): # pylint: disable=too-few-public-methods 1343 1343 """ 1344 1344 AttributeChangeEntry for preformatted values. … … 1348 1348 AttributeChangeEntry.__init__(self, sAttr, oNewRaw, oOldRaw, sNewText, sOldText); 1349 1349 1350 class ChangeLogEntry(object): # pylint: disable= R09031350 class ChangeLogEntry(object): # pylint: disable=too-few-public-methods 1351 1351 """ 1352 1352 A change log entry returned by the fetchChangeLog method typically -
trunk/src/VBox/ValidationKit/testmanager/core/build.py
r76553 r79087 143 143 144 144 145 class BuildCategoryLogic(ModelLogicBase): # pylint: disable= R0903145 class BuildCategoryLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 146 146 """ 147 147 Build categories database logic. … … 502 502 503 503 504 class BuildLogic(ModelLogicBase): # pylint: disable= R0903504 class BuildLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 505 505 """ 506 506 Build database logic (covers build categories as well as builds). … … 867 867 # 868 868 869 # pylint: disable= C0111869 # pylint: disable=missing-docstring 870 870 class BuildCategoryDataTestCase(ModelDataBaseTestCase): 871 871 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/buildblacklist.py
r76553 r79087 119 119 120 120 121 class BuildBlacklistLogic(ModelLogicBase): # pylint: disable= R0903121 class BuildBlacklistLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 122 122 """ 123 123 Build Back List logic. -
trunk/src/VBox/ValidationKit/testmanager/core/buildsource.py
r76553 r79087 150 150 return (oNewValue, sError); 151 151 152 class BuildSourceLogic(ModelLogicBase): # pylint: disable= R0903152 class BuildSourceLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 153 153 """ 154 154 Build source database logic. … … 504 504 # 505 505 506 # pylint: disable= C0111506 # pylint: disable=missing-docstring 507 507 class BuildSourceDataTestCase(ModelDataBaseTestCase): 508 508 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/db.py
r76553 r79087 214 214 if config.g_ksDatabasePort is not None: 215 215 dArgs['port'] = config.g_ksDatabasePort; 216 self._oConn = psycopg2.connect(**dArgs); # pylint: disable= W0142216 self._oConn = psycopg2.connect(**dArgs); # pylint: disable=star-args 217 217 self._oConn.set_client_encoding('UTF-8'); 218 218 self._oCursor = self._oConn.cursor(); … … 220 220 self._oExplainCursor = None; 221 221 if config.g_kfWebUiSqlTraceExplain and config.g_kfWebUiSqlTrace: 222 self._oExplainConn = psycopg2.connect(**dArgs); # pylint: disable= W0142222 self._oExplainConn = psycopg2.connect(**dArgs); # pylint: disable=star-args 223 223 self._oExplainConn.set_client_encoding('UTF-8'); 224 224 self._oExplainCursor = self._oExplainConn.cursor(); … … 701 701 if config.g_ksDatabasePort is not None: 702 702 dArgs['port'] = config.g_ksDatabasePort; 703 self._oExplainConn = psycopg2.connect(**dArgs); # pylint: disable= W0142703 self._oExplainConn = psycopg2.connect(**dArgs); # pylint: disable=star-args 704 704 self._oExplainCursor = self._oExplainConn.cursor(); 705 705 return True; -
trunk/src/VBox/ValidationKit/testmanager/core/failurecategory.py
r76553 r79087 109 109 110 110 111 class FailureCategoryLogic(ModelLogicBase): # pylint: disable= R0903111 class FailureCategoryLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 112 112 """ 113 113 Failure Category logic. … … 149 149 150 150 151 def fetchForChangeLog(self, idFailureCategory, iStart, cMaxRows, tsNow): # pylint: disable= R0914151 def fetchForChangeLog(self, idFailureCategory, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals 152 152 """ 153 153 Fetches change log entries for a failure reason. -
trunk/src/VBox/ValidationKit/testmanager/core/failurereason.py
r76553 r79087 143 143 144 144 145 class FailureReasonLogic(ModelLogicBase): # pylint: disable= R0903145 class FailureReasonLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 146 146 """ 147 147 Failure Reason logic. … … 276 276 277 277 278 def fetchForChangeLog(self, idFailureReason, iStart, cMaxRows, tsNow): # pylint: disable= R0914278 def fetchForChangeLog(self, idFailureReason, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals 279 279 """ 280 280 Fetches change log entries for a failure reason. -
trunk/src/VBox/ValidationKit/testmanager/core/globalresource.py
r76553 r79087 308 308 # 309 309 310 # pylint: disable= C0111310 # pylint: disable=missing-docstring 311 311 class GlobalResourceDataTestCase(ModelDataBaseTestCase): 312 312 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/report.py
r76553 r79087 60 60 61 61 62 class ReportModelBase(ModelLogicBase): # pylint: disable= R090362 class ReportModelBase(ModelLogicBase): # pylint: disable=too-few-public-methods 63 63 """ 64 64 Something all report logic(/miner) classes inherit from. … … 242 242 class ReportFailureReasonTransient(ReportTransientBase): 243 243 """ Details on the test where a failure reason was first/last seen. """ 244 def __init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone, # pylint: disable= R0913244 def __init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone, # pylint: disable=too-many-arguments 245 245 iPeriod, fEnter, oReason): 246 246 ReportTransientBase.__init__(self, idBuild, iRevision, sRepository, idTestSet, idTestResult, tsDone, iPeriod, fEnter, … … 530 530 531 531 532 class ReportLazyModel(ReportModelBase): # pylint: disable= R0903532 class ReportLazyModel(ReportModelBase): # pylint: disable=too-few-public-methods 533 533 """ 534 534 The 'lazy bird' report model class. … … 890 890 891 891 892 class ReportGraphModel(ReportModelBase): # pylint: disable= R0903892 class ReportGraphModel(ReportModelBase): # pylint: disable=too-few-public-methods 893 893 """ 894 894 Extended report model used when generating the more complicated graphs … … 977 977 978 978 979 def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects, # pylint: disable= R0913979 def __init__(self, oDb, tsNow, cPeriods, cHoursPerPeriod, sSubject, aidSubjects, # pylint: disable=too-many-arguments 980 980 aidTestBoxes, aidBuildCats, aidTestCases, fSepTestVars): 981 981 assert(sSubject == self.ksSubEverything); # dummy -
trunk/src/VBox/ValidationKit/testmanager/core/schedgroup.py
r76553 r79087 259 259 def __init__(self): 260 260 SchedGroupData.__init__(self); 261 self.aoMembers = [] ;# type: SchedGroupMemberDataEx261 self.aoMembers = [] # type: SchedGroupMemberDataEx 262 262 263 263 # Two build sources for convenience sake. 264 self.oBuildSrc = None ;# type: TestBoxData265 self.oBuildSrcValidationKit = None ;# type: TestBoxData264 self.oBuildSrc = None # type: TestBoxData 265 self.oBuildSrcValidationKit = None # type: TestBoxData 266 266 # List of test boxes that uses this group for convenience. 267 self.aoTestBoxes = None ;# type: list[TestBoxData]267 self.aoTestBoxes = None # type: list[TestBoxData] 268 268 269 269 def _initExtraMembersFromDb(self, oDb, tsNow = None, sPeriodBack = None): … … 421 421 422 422 423 class SchedGroupLogic(ModelLogicBase): # pylint: disable= R0903423 class SchedGroupLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 424 424 """ 425 425 SchedGroup logic. … … 578 578 raise TMRowInUse('Scheduling group #%d is associated with one or more test boxes: %s' 579 579 % (idSchedGroup, ', '.join(asTestBoxes),)); 580 else: 581 # Reassign testboxes to scheduling group #1 (the default group). 582 oTbLogic = TestBoxLogic(self._oDb); 583 for oTestBox in oData.aoTestBoxes: 584 oTbCopy = TestBoxData().initFromOther(oTestBox); 585 oTbCopy.idSchedGroup = 1; 586 oTbLogic.editEntry(oTbCopy, uidAuthor, fCommit = False); 587 588 oData = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup); 589 if oData.aoTestBoxes: 590 raise TMRowInUse('More testboxes was added to the scheduling group as we were trying to delete it.'); 580 # Reassign testboxes to scheduling group #1 (the default group). 581 oTbLogic = TestBoxLogic(self._oDb); 582 for oTestBox in oData.aoTestBoxes: 583 oTbCopy = TestBoxData().initFromOther(oTestBox); 584 oTbCopy.idSchedGroup = 1; 585 oTbLogic.editEntry(oTbCopy, uidAuthor, fCommit = False); 586 587 oData = SchedGroupDataEx().initFromDbWithId(self._oDb, idSchedGroup); 588 if oData.aoTestBoxes: 589 raise TMRowInUse('More testboxes was added to the scheduling group as we were trying to delete it.'); 591 590 592 591 # … … 982 981 # 983 982 984 # pylint: disable= C0111983 # pylint: disable=missing-docstring 985 984 class SchedGroupMemberDataTestCase(ModelDataBaseTestCase): 986 985 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 … … 352 352 self.cMissingGangMembers = 1; 353 353 354 def initFromValues(self, idSchedGroup, idGenTestCaseArgs, idTestGroup, aidTestGroupPreReqs, # pylint: disable= R0913354 def initFromValues(self, idSchedGroup, idGenTestCaseArgs, idTestGroup, aidTestGroupPreReqs, # pylint: disable=too-many-arguments 355 355 bmHourlySchedule, cMissingGangMembers, 356 356 idItem = None, offQueue = None, tsConfig = None, tsLastScheduled = None, idTestSetGangLeader = None): … … 1506 1506 # 1507 1507 1508 # pylint: disable= C01111508 # pylint: disable=missing-docstring 1509 1509 class SchedQueueDataTestCase(ModelDataBaseTestCase): 1510 1510 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbeci.py
r76553 r79087 34 34 35 35 36 class SchdulerBeci(SchedulerBase): # pylint: disable= R090336 class SchdulerBeci(SchedulerBase): # pylint: disable=too-few-public-methods 37 37 """ 38 38 The best-effort-continuous-integration scheduler, BECI for short. -
trunk/src/VBox/ValidationKit/testmanager/core/systemchangelog.py
r76553 r79087 36 36 37 37 38 class SystemChangelogEntry(object): # pylint: disable= R090238 class SystemChangelogEntry(object): # pylint: disable=too-many-instance-attributes 39 39 """ 40 40 System changelog entry. … … 71 71 72 72 ## Mapping a changelog entry kind to a table, key and clue. 73 kdWhatToTable = dict({ # pylint: disable= W014273 kdWhatToTable = dict({ # pylint: disable=star-args 74 74 ksWhat_TestBox: ( 'TestBoxes', 'idTestBox', None, ), 75 75 ksWhat_TestCase: ( 'TestCasees', 'idTestCase', None, ), -
trunk/src/VBox/ValidationKit/testmanager/core/systemlog.py
r76553 r79087 37 37 38 38 39 class SystemLogData(ModelDataBase): # pylint: disable= R090239 class SystemLogData(ModelDataBase): # pylint: disable=too-many-instance-attributes 40 40 """ 41 41 SystemLog Data. … … 166 166 # 167 167 168 # pylint: disable= C0111168 # pylint: disable=missing-docstring 169 169 class SystemLogDataTestCase(ModelDataBaseTestCase): 170 170 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r76886 r79087 99 99 def __init__(self): 100 100 TestBoxInSchedGroupData.__init__(self); 101 self.oSchedGroup = None ;# type: SchedGroupData101 self.oSchedGroup = None # type: SchedGroupData 102 102 103 103 def initFromDbRowEx(self, aoRow, oDb, tsNow = None, sPeriodBack = None): … … 111 111 112 112 113 # pylint: disable= C0103114 class TestBoxData(ModelDataBase): # pylint: disable= R0902113 # pylint: disable=invalid-name 114 class TestBoxData(ModelDataBase): # pylint: disable=too-many-instance-attributes 115 115 """ 116 116 TestBox Data. … … 476 476 if uFam == 0xf: 477 477 if uMod < 0x10: return 'K8_130nm'; 478 if uMod >= 0x60 and uMod < 0x80:return 'K8_65nm';478 if 0x60 <= uMod < 0x80: return 'K8_65nm'; 479 479 if uMod >= 0x40: return 'K8_90nm_AMDV'; 480 480 if uMod in [0x21, 0x23, 0x2b, 0x37, 0x3f]: return 'K8_90nm_DualCore'; … … 567 567 def __init__(self): 568 568 TestBoxData.__init__(self); 569 self.aoInSchedGroups = [] ;# type: list[TestBoxInSchedGroupData]569 self.aoInSchedGroups = [] # type: list[TestBoxInSchedGroupData] 570 570 571 571 def _initExtraMembersFromDb(self, oDb, tsNow = None, sPeriodBack = None): … … 634 634 return aoNewValues; 635 635 636 def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable= R0914636 def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=too-many-locals 637 637 """ 638 638 Validate special arrays and requirement expressions. … … 773 773 TestBoxDataEx.__init__(self); 774 774 self.tsCurrent = None; # CURRENT_TIMESTAMP 775 self.oStatus = None ;# type: TestBoxStatusData775 self.oStatus = None # type: TestBoxStatusData 776 776 777 777 from testmanager.core.testboxstatus import TestBoxStatusData; … … 811 811 return aoRows; 812 812 813 def fetchForChangeLog(self, idTestBox, iStart, cMaxRows, tsNow): # pylint: disable= R0914813 def fetchForChangeLog(self, idTestBox, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals 814 814 """ 815 815 Fetches change log entries for a testbox. … … 1013 1013 1014 1014 1015 def updateOnSignOn(self, idTestBox, idGenTestBox, sTestBoxAddr, sOs, sOsVersion, # pylint: disable= R0913,R09141015 def updateOnSignOn(self, idTestBox, idGenTestBox, sTestBoxAddr, sOs, sOsVersion, # pylint: disable=too-many-arguments,too-many-locals 1016 1016 sCpuVendor, sCpuArch, sCpuName, lCpuRevision, cCpus, fCpuHwVirt, fCpuNestedPaging, fCpu64BitGuest, 1017 1017 fChipsetIoMmu, fRawMode, cMbMemory, cMbScratch, sReport, iTestBoxScriptRev, iPythonHexVersion): … … 1153 1153 except TMInFligthCollision: 1154 1154 return False; 1155 except:1156 raise;1157 1155 return True; 1158 1156 … … 1177 1175 # 1178 1176 1179 # pylint: disable= C01111177 # pylint: disable=missing-docstring 1180 1178 class TestBoxDataTestCase(ModelDataBaseTestCase): 1181 1179 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py
r76553 r79087 33 33 import re; 34 34 import os; 35 import string; # pylint: disable= W040235 import string; # pylint: disable=deprecated-module 36 36 import sys; 37 37 import uuid; … … 53 53 # Python 3 hacks: 54 54 if sys.version_info[0] >= 3: 55 long = int; # pylint: disable= W0622,C010355 long = int; # pylint: disable=redefined-builtin,invalid-name 56 56 57 57 … … 60 60 Exception class for TestBoxController. 61 61 """ 62 pass; 63 64 65 class TestBoxController(object): # pylint: disable= R090362 pass; # pylint: disable=unnecessary-pass 63 64 65 class TestBoxController(object): # pylint: disable=too-few-public-methods 66 66 """ 67 67 TestBox Controller class. … … 190 190 """ 191 191 sValue = self._getStringParam(sName, [ 'True', 'true', '1', 'False', 'false', '0'], sDefValue = str(fDefValue)); 192 return sValue == 'True' or sValue == 'true' or sValue == '1';192 return sValue in ('True', 'true', '1',); 193 193 194 194 def _getIntParam(self, sName, iMin = None, iMax = None): … … 346 346 return fSizeOk; 347 347 348 def _actionSignOn(self): # pylint: disable= R0914348 def _actionSignOn(self): # pylint: disable=too-many-locals 349 349 """ Implement sign-on """ 350 350 … … 401 401 cPctScratchDiff = 100; 402 402 403 # pylint: disable= R0916403 # pylint: disable=too-many-boolean-expressions 404 404 if self._sTestBoxAddr != oTestBox.ip \ 405 405 or sOs != oTestBox.sOs \ … … 738 738 739 739 abBuf = oSrcFile.read(cbToRead); 740 oDstFile.write(abBuf); # pylint: disable= E1103740 oDstFile.write(abBuf); # pylint: disable=maybe-no-member 741 741 del abBuf; 742 742 743 oDstFile.close(); # pylint: disable= E1103743 oDstFile.close(); # pylint: disable=maybe-no-member 744 744 745 745 # Done. -
trunk/src/VBox/ValidationKit/testmanager/core/testboxstatus.py
r76553 r79087 297 297 # 298 298 299 # pylint: disable= C0111299 # pylint: disable=missing-docstring 300 300 class TestBoxStatusDataTestCase(ModelDataBaseTestCase): 301 301 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testcase.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 """ … … 857 857 return aoNewValues; 858 858 859 def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable= R0914859 def _validateAndConvertAttribute(self, sAttr, sParam, oValue, aoNilValues, fAllowNull, oDb): # pylint: disable=too-many-locals 860 860 """ 861 861 Validate special arrays and requirement expressions. … … 999 999 return aoRows; 1000 1000 1001 def fetchForChangeLog(self, idTestCase, iStart, cMaxRows, tsNow): # pylint: disable= R09141001 def fetchForChangeLog(self, idTestCase, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals 1002 1002 """ 1003 1003 Fetches change log entries for a testbox. … … 1184 1184 return True; 1185 1185 1186 def editEntry(self, oData, uidAuthor, fCommit = False): # pylint: disable= R09141186 def editEntry(self, oData, uidAuthor, fCommit = False): # pylint: disable=too-many-locals 1187 1187 """ 1188 1188 Edit a testcase entry (extended). … … 1416 1416 # 1417 1417 1418 # pylint: disable= C01111418 # pylint: disable=missing-docstring 1419 1419 class TestCaseGlobalRsrcDepDataTestCase(ModelDataBaseTestCase): 1420 1420 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testcaseargs.py
r76553 r79087 42 42 # Python 3 hacks: 43 43 if sys.version_info[0] >= 3: 44 long = int; # pylint: disable= W0622,C010344 long = int; # pylint: disable=redefined-builtin,invalid-name 45 45 46 46 … … 135 135 return self.initFromDbRow(oDb.fetchOne()); 136 136 137 def initFromValues(self, sArgs, cSecTimeout = None, sTestBoxReqExpr = None, sBuildReqExpr = None, # pylint: disable= R0913137 def initFromValues(self, sArgs, cSecTimeout = None, sTestBoxReqExpr = None, sBuildReqExpr = None, # pylint: disable=too-many-arguments 138 138 cGangMembers = 1, idTestCase = None, idTestCaseArgs = None, tsEffective = None, tsExpire = None, 139 139 uidAuthor = None, idGenTestCaseArgs = None, sSubName = None): … … 396 396 # 397 397 398 # pylint: disable= C0111398 # pylint: disable=missing-docstring 399 399 class TestCaseArgsDataTestCase(ModelDataBaseTestCase): 400 400 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testgroup.py
r76553 r79087 747 747 # 748 748 749 # pylint: disable= C0111749 # pylint: disable=missing-docstring 750 750 class TestGroupMemberDataTestCase(ModelDataBaseTestCase): 751 751 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testresultfailures.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 ## @todo Rename this file to testresult.py! … … 146 146 147 147 148 class TestResultListingData(ModelDataBase): # pylint: disable= R0902148 class TestResultListingData(ModelDataBase): # pylint: disable=too-many-instance-attributes 149 149 """ 150 150 Test case result data representation for table listing … … 255 255 256 256 257 class TestResultFailureLogic(ModelLogicBase): # pylint: disable= R0903257 class TestResultFailureLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 258 258 """ 259 259 Test result failure reason logic. … … 263 263 ModelLogicBase.__init__(self, oDb) 264 264 265 def fetchForChangeLog(self, idTestResult, iStart, cMaxRows, tsNow): # pylint: disable= R0914265 def fetchForChangeLog(self, idTestResult, iStart, cMaxRows, tsNow): # pylint: disable=too-many-locals 266 266 """ 267 267 Fetches change log entries for a failure reason. … … 509 509 # 510 510 511 # pylint: disable= C0111511 # pylint: disable=missing-docstring 512 512 class TestResultFailureDataTestCase(ModelDataBaseTestCase): 513 513 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 ## @todo Rename this file to testresult.py! … … 550 550 551 551 552 class TestResultListingData(ModelDataBase): # pylint: disable= R0902552 class TestResultListingData(ModelDataBase): # pylint: disable=too-many-instance-attributes 553 553 """ 554 554 Test case result data representation for table listing … … 990 990 991 991 992 class TestResultLogic(ModelLogicBase): # pylint: disable= R0903992 class TestResultLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 993 993 """ 994 994 Results grouped by scheduling group. … … 1199 1199 return sRet 1200 1200 1201 def fetchResultsForListing(self, iStart, cMaxRows, tsNow, sInterval, oFilter, enmResultSortBy, # pylint: disable= R09131201 def fetchResultsForListing(self, iStart, cMaxRows, tsNow, sInterval, oFilter, enmResultSortBy, # pylint: disable=too-many-arguments 1202 1202 enmResultsGroupingType, iResultsGroupingValue, fOnlyFailures, fOnlyNeedingReason): 1203 1203 """ … … 2558 2558 if sAttr in dAttribs: 2559 2559 try: 2560 _ = long(dAttribs[sAttr]); # pylint: disable= R02042560 _ = long(dAttribs[sAttr]); # pylint: disable=redefined-variable-type 2561 2561 except: 2562 2562 return 'Element %s has an invalid %s attribute value: %s.' % (sName, sAttr, dAttribs[sAttr],); … … 2854 2854 # 2855 2855 2856 # pylint: disable= C01112856 # pylint: disable=missing-docstring 2857 2857 class TestResultDataTestCase(ModelDataBaseTestCase): 2858 2858 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/testset.py
r78780 r79087 537 537 return True; 538 538 539 def createFile(self, oTestSet, sName, sMime, sKind, sDesc, cbFile, fCommit = False): # pylint: disable= R0914539 def createFile(self, oTestSet, sName, sMime, sKind, sDesc, cbFile, fCommit = False): # pylint: disable=too-many-locals 540 540 """ 541 541 Creates a file and associating with the current test result record in … … 825 825 # 826 826 827 # pylint: disable= C0111827 # pylint: disable=missing-docstring 828 828 class TestSetDataTestCase(ModelDataBaseTestCase): 829 829 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/useraccount.py
r76553 r79087 282 282 # 283 283 284 # pylint: disable= C0111284 # pylint: disable=missing-docstring 285 285 class UserAccountDataTestCase(ModelDataBaseTestCase): 286 286 def setUp(self): -
trunk/src/VBox/ValidationKit/testmanager/core/vcsrevisions.py
r76553 r79087 105 105 106 106 107 class VcsRevisionLogic(ModelLogicBase): # pylint: disable= R0903107 class VcsRevisionLogic(ModelLogicBase): # pylint: disable=too-few-public-methods 108 108 """ 109 109 VCS revisions database logic. … … 234 234 # 235 235 236 # pylint: disable= C0111236 # pylint: disable=missing-docstring 237 237 class VcsRevisionDataTestCase(ModelDataBaseTestCase): 238 238 def setUp(self):
Note:
See TracChangeset
for help on using the changeset viewer.