Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131247
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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):
Note:
See TracChangeset
for help on using the changeset viewer.