Changeset 97673 in vbox for trunk/src/VBox/ValidationKit/tests/storage/tdStorageRawDrive1.py
- Timestamp:
- Nov 24, 2022 11:46:15 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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:
Note:
See TracChangeset
for help on using the changeset viewer.