Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/tests/storage
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- Location:
- trunk/src/VBox/ValidationKit/tests/storage
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py
r76553 r79087 162 162 oStdIn = StdInOutBuffer(sInput); 163 163 else: 164 oStdIn = '/dev/null'; # pylint: disable= R0204164 oStdIn = '/dev/null'; # pylint: disable=redefined-variable-type 165 165 fRc = self.oTxsSession.syncExecEx(sExec, (sExec,) + asArgs, 166 166 oStdIn = oStdIn, oStdOut = oStdOut, -
trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py
r76553 r79087 428 428 oStorOs = StorageConfigOsSolaris(); 429 429 elif sTargetOs == 'linux': 430 oStorOs = StorageConfigOsLinux(); # pylint: disable= R0204430 oStorOs = StorageConfigOsLinux(); # pylint: disable=redefined-variable-type 431 431 else: 432 432 fRc = False; … … 450 450 451 451 # Destroy all volumes first. 452 for sMountPoint in self.dVols.keys(): # pylint: disable= C0201452 for sMountPoint in self.dVols.keys(): # pylint: disable=consider-iterating-dictionary 453 453 self.destroyVolume(sMountPoint); 454 454 455 455 # Destroy all pools. 456 for sPool in self.dPools.keys(): # pylint: disable= C0201456 for sPool in self.dPools.keys(): # pylint: disable=consider-iterating-dictionary 457 457 self.destroyStoragePool(sPool); 458 458 -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r76553 r79087 36 36 import sys; 37 37 if sys.version_info[0] >= 3: 38 from io import StringIO as StringIO; # pylint: disable=import-error,no-name-in-module 38 from io import StringIO as StringIO; # pylint: disable=import-error,no-name-in-module,useless-import-alias 39 39 else: 40 from StringIO import StringIO as StringIO; # pylint: disable=import-error,no-name-in-module 40 from StringIO import StringIO as StringIO; # pylint: disable=import-error,no-name-in-module,useless-import-alias 41 41 42 42 # Only the main script needs to modify the path. … … 61 61 def _ControllerTypeToName(eControllerType): 62 62 """ Translate a controller type to a name. """ 63 if eControllerType == vboxcon.StorageControllerType_PIIX3 or eControllerType == vboxcon.StorageControllerType_PIIX4:63 if eControllerType in (vboxcon.StorageControllerType_PIIX3, eControllerType == vboxcon.StorageControllerType_PIIX4,): 64 64 sType = "IDE Controller"; 65 65 elif eControllerType == vboxcon.StorageControllerType_IntelAhci: … … 67 67 elif eControllerType == vboxcon.StorageControllerType_LsiLogicSas: 68 68 sType = "SAS Controller"; 69 elif eControllerType == vboxcon.StorageControllerType_LsiLogic or eControllerType == vboxcon.StorageControllerType_BusLogic:69 elif eControllerType in (vboxcon.StorageControllerType_LsiLogic, vboxcon.StorageControllerType_BusLogic,): 70 70 sType = "SCSI Controller"; 71 71 elif eControllerType == vboxcon.StorageControllerType_NVMe: … … 404 404 return asTestCfg; 405 405 406 class tdStorageBenchmark(vbox.TestDriver): # pylint: disable= R0902406 class tdStorageBenchmark(vbox.TestDriver): # pylint: disable=too-many-instance-attributes 407 407 """ 408 408 Storage benchmark. … … 579 579 return rc; 580 580 581 def parseOption(self, asArgs, iArg): # pylint: disable= R0912,R0915581 def parseOption(self, asArgs, iArg): # pylint: disable=too-many-branches,too-many-statements 582 582 if asArgs[iArg] == '--virt-modes': 583 583 iArg += 1; … … 944 944 oTst = IozoneTest(oExecutor, dTestSet); 945 945 elif sBenchmark == 'fio': 946 oTst = FioTest(oExecutor, dTestSet); # pylint: disable= R0204946 oTst = FioTest(oExecutor, dTestSet); # pylint: disable=redefined-variable-type 947 947 948 948 if oTst is not None: … … 1045 1045 return (None, None); 1046 1046 1047 def testOneCfg(self, sVmName, eStorageController, sHostIoCache, sDiskFormat, # pylint: disable= R0913,R0914,R09151047 def testOneCfg(self, sVmName, eStorageController, sHostIoCache, sDiskFormat, # pylint: disable=too-many-arguments,too-many-locals,too-many-statements 1048 1048 sDiskVariant, sDiskPath, cCpus, sIoTest, sVirtMode, sTestSet): 1049 1049 """ … … 1109 1109 1110 1110 iDevice = 0; 1111 if eStorageController == vboxcon.StorageControllerType_PIIX3 or \ 1112 eStorageController == vboxcon.StorageControllerType_PIIX4: 1111 if eStorageController in (vboxcon.StorageControllerType_PIIX3, vboxcon.StorageControllerType_PIIX4,): 1113 1112 iDevice = 1; # Master is for the OS. 1114 1113 … … 1141 1140 1142 1141 iLun = 0; 1143 if eStorageController == vboxcon.StorageControllerType_PIIX3 or \ 1144 eStorageController == vboxcon.StorageControllerType_PIIX4: 1142 if eStorageController in (vboxcon.StorageControllerType_PIIX3, vboxcon.StorageControllerType_PIIX4,): 1145 1143 iLun = 1 1146 1144 sDrv, fDrvScsi = self.getStorageDriverFromEnum(eStorageController, True); -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageSnapshotMerging1.py
r79022 r79087 79 79 80 80 81 class tdStorageSnapshot(vbox.TestDriver): # pylint: disable= R090281 class tdStorageSnapshot(vbox.TestDriver): # pylint: disable=too-many-instance-attributes 82 82 """ 83 83 Storage benchmark. … … 109 109 return rc; 110 110 111 def parseOption(self, asArgs, iArg): # pylint: disable= R0912,R0915111 def parseOption(self, asArgs, iArg): # pylint: disable=too-many-branches,too-many-statements 112 112 if asArgs[iArg] == '--storage-ctrls': 113 113 iArg += 1; -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageStress1.py
r76553 r79087 60 60 return sType; 61 61 62 class tdStorageStress(vbox.TestDriver): # pylint: disable= R090262 class tdStorageStress(vbox.TestDriver): # pylint: disable=too-many-instance-attributes 63 63 """ 64 64 Storage testcase. … … 125 125 return rc; 126 126 127 def parseOption(self, asArgs, iArg): # pylint: disable= R0912,R0915127 def parseOption(self, asArgs, iArg): # pylint: disable=too-many-branches,too-many-statements 128 128 if asArgs[iArg] == '--virt-modes': 129 129 iArg += 1; … … 326 326 return fRc; 327 327 328 # pylint: disable= R0913328 # pylint: disable=too-many-arguments 329 329 330 330 def test1OneCfg(self, sVmName, eStorageController, sDiskFormat, sDiskPath1, sDiskPath2, \
Note:
See TracChangeset
for help on using the changeset viewer.