Changeset 97673 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Nov 24, 2022 11:46:15 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154728
- Location:
- trunk/src/VBox/ValidationKit/tests
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py
r97593 r97673 152 152 % (uuid.uuid4(), self.sVBoxValidationKitIso, sGaIso); 153 153 reporter.log2('Using VISO combining ValKit and GAs "%s": %s' % (sVisoContent, sGaViso)); 154 with open(sGaViso, 'w') as oGaViso: 154 with open(sGaViso, 'w') as oGaViso: # pylint: disable=unspecified-encoding 155 155 oGaViso.write(sVisoContent); 156 156 sGaIso = sGaViso; -
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r97604 r97673 3353 3353 args = (oGuestProcess,), 3354 3354 name = ('threadForTestGuestCtrlSessionReboot')); 3355 oThreadReboot.setDaemon(True); 3355 oThreadReboot.setDaemon(True); # pylint: disable=deprecated-method 3356 3356 oThreadReboot.start(); 3357 3357 … … 4312 4312 oFile.setSize(64); 4313 4313 fUseFallback = False; 4314 except Exception as oXcpt:4314 except: 4315 4315 reporter.logXcpt(); 4316 4316 … … 4323 4323 try: 4324 4324 oFile.setSize(cbBigFile); 4325 except Exception as oXcpt:4325 except Exception: 4326 4326 reporter.logXcpt('cbBigFile=%s' % (sBigPath,)); 4327 4327 try: -
trunk/src/VBox/ValidationKit/tests/api/tdPython1.py
r96407 r97673 176 176 try: 177 177 oThread = threading.Thread(target=self.interruptWaitEventsThreadProc); 178 oThread.setDaemon(False); 178 oThread.setDaemon(False); # pylint: disable=deprecated-method 179 179 except: 180 180 reporter.errorXcpt(); -
trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py
r96407 r97673 1318 1318 oSet.aoTestVms.extend([oTestVm for oTestVm in self.asTestVmClasses.values() if oTestVm is not None]); 1319 1319 sOs = self.getBuildOs(); 1320 if sOs in self.asTestVmClasses .keys():1320 if sOs in self.asTestVmClasses: 1321 1321 for oTestVM in oSet.aoTestVms: 1322 1322 if oTestVM is not None: -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstOs2.py
r96407 r97673 206 206 207 207 # Set extra data 208 if self.asExtraData != []:208 if self.asExtraData: 209 209 for sExtraData in self.asExtraData: 210 210 try: -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsUnattendedInst1.py
r96407 r97673 269 269 eNic0AttachType = vboxcon.NetworkAttachmentType_HostOnlyNetwork; 270 270 271 return vboxtestvms.BaseTestVm._createVmDoIt(self, oTestDrv, eNic0AttachType, sDvdImage); 271 return vboxtestvms.BaseTestVm._createVmDoIt(self, oTestDrv, eNic0AttachType, sDvdImage); # pylint: disable=protected-access 272 272 273 273 … … 322 322 return True; 323 323 324 return vboxtestvms.BaseTestVm._skipVmTest(self, oTestDrv, oVM); 324 return vboxtestvms.BaseTestVm._skipVmTest(self, oTestDrv, oVM); # pylint: disable=protected-access 325 325 326 326 327 def getReconfiguredVm(self, oTestDrv, cCpus, sVirtMode, sParavirtMode = None): -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageRawDrive1.py
r96407 r97673 1086 1086 sKey = oMatch.group(1).strip(); 1087 1087 sValue = oMatch.group(2).strip(); 1088 if sKey not in asHeader .keys():1088 if sKey not in asHeader: 1089 1089 return reporter.error("VMDK descriptor has invalid format"); 1090 1090 sDictValue = asHeader[sKey]; … … 1122 1122 sKey = oMatch.group(1).strip(); 1123 1123 sValue = oMatch.group(2).strip(); 1124 if sKey not in asDatabase .keys():1124 if sKey not in asDatabase: 1125 1125 return reporter.error("VMDK descriptor has invalid format"); 1126 1126 sDictValue = asDatabase[sKey]; … … 1190 1190 reporter.error('Download vmdktest.vmdk from guest to host failed'); 1191 1191 else: 1192 with open(sDstFile) as oFile: 1192 with open(sDstFile) as oFile: # pylint: disable=unspecified-encoding 1193 1193 asDescriptor = [row.strip() for row in oFile]; 1194 1194 if not asDescriptor: … … 1579 1579 oSet.aoTestVms.extend([oTestVm for oTestVm in self.asTestVmClasses.values() if oTestVm is not None]); 1580 1580 sOs = self.getBuildOs(); 1581 if sOs in self.asTestVmClasses .keys():1581 if sOs in self.asTestVmClasses: 1582 1582 for oTestVM in oSet.aoTestVms: 1583 1583 if oTestVM is not None: -
trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py
r97488 r97673 1157 1157 # Open /dev/null for use as stdin further down. 1158 1158 try: 1159 oDevNull = open(os.path.devnull, 'w+'); # pylint: disable=consider-using-with 1159 oDevNull = open(os.path.devnull, 'w+'); # pylint: disable=consider-using-with,unspecified-encoding 1160 1160 except: 1161 1161 oDevNull = None; -
trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py
r96407 r97673 563 563 self.aTaskArgs = aArgs; 564 564 self.oThread = threading.Thread(target=self.taskThread, args=(), name=('UTS-%s' % (sStatus))); 565 self.oThread.setDaemon(True); 565 self.oThread.setDaemon(True); # pylint: disable=deprecated-method 566 566 self.msStart = base.timestampMilli(); 567 567
Note:
See TracChangeset
for help on using the changeset viewer.