Changeset 103545 in vbox
- Timestamp:
- Feb 23, 2024 11:48:53 AM (9 months ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/ValidationKitCodingGuidelines.cpp
r98103 r103545 48 48 * 49 49 * Type prefixes: 50 * - 'b' for byte (octe ct).50 * - 'b' for byte (octet). 51 51 * - 'ch' for a single character. 52 52 * - 'f' for boolean and flags. … … 68 68 * 69 69 * Other qualifiers: 70 * - 'c' for a count. Implies integer or long integer type. Hig est70 * - 'c' for a count. Implies integer or long integer type. Highest 71 71 * priority. 72 72 * - 'sec' for a second value. Implies long integer type. -
trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py
r103394 r103545 125 125 asPools = sOutput.splitlines(); 126 126 for sPool in asPools: 127 if sPool.startswith(sPoolIdStart): 128 # Extract the whole name and add it to the list. 129 asItems = sPool.split('\t'); 130 lstPools.append(asItems[0]); 127 oMatchResult = re.match("%s[0-9]?[0-9]?" % sPoolIdStart, sPool) # either re.Match obj or None 128 if oMatchResult: 129 lstPools.append(oMatchResult.group(0)); 131 130 return lstPools; 132 131 … … 142 141 asVolumes = sOutput.splitlines(); 143 142 for sVolume in asVolumes: 144 if sVolume.startswith(sPool + '/' + sVolumeIdStart): 145 # Extract the whole name and add it to the list. 146 asItems = sVolume.split('\t'); 147 lstVolumes.append(asItems[0]); 143 oMatchResult = re.match("%s/%s" % (sPool, sVolumeIdStart), sVolume) # either re.Match obj or None 144 if oMatchResult: 145 lstVolumes.append(oMatchResult.group(0)); 148 146 return lstVolumes; 149 147 … … 495 493 self.lstDisks = oStorOs.getDisksMatchingRegExp(oDiskCfg.getDisks()); 496 494 elif oDiskCfg.isCfgList(): 497 # Assume a list of ofdisks and add.495 # Assume a list of disks and add. 498 496 for sDisk in oDiskCfg.getDisks(): 499 497 self.lstDisks.append(StorageDisk(sDisk)); … … 679 677 def cleanupLeftovers(self): 680 678 """ 681 Tries to clean up any leftover pools and volumes from a failed previous run.679 Tries to clean up any leftover pools and volumes from a failed previous run. 682 680 """ 683 681 reporter.log('cleanupLeftovers starts'); … … 686 684 687 685 fRc = True; 688 if os.path.exists(self.oDiskCfg.getDisks()): 689 for sEntry in os.listdir(self.oDiskCfg.getDisks()): 686 asDisks = self.oDiskCfg.getDisks(); 687 reporter.log("oDiskCfg.getDisks: %s" % asDisks); 688 if os.path.exists(asDisks): 689 for sEntry in os.listdir(asDisks): 690 690 fRc = fRc and self.oExec.rmTree(os.path.join(self.oDiskCfg.getDisks(), sEntry)); 691 691 reporter.log('cleanupLeftovers ends'); -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r103336 r103545 494 494 'testboxstor1.de.oracle.com': (True, storagecfg.DiskCfg('solaris', storagecfg.g_ksDiskCfgRegExp, r'c[3-9]t\dd0\Z')), 495 495 # Windows testbox doesn't return testboxstor2.de.oracle.com from socket.getfqdn() 496 'testboxstor2': (False, storagecfg.DiskCfg('win', storagecfg.g_ksDiskCfgStatic, 'D:\\StorageTest')),496 'testboxstor2': (False, storagecfg.DiskCfg('win', storagecfg.g_ksDiskCfgStatic, 'D:/StorageTest')), 497 497 498 498 # Local test configs for the testcase developer
Note:
See TracChangeset
for help on using the changeset viewer.