Changeset 65967 in vbox for trunk/src/VBox/ValidationKit/testdriver/btresolver.py
- Timestamp:
- Mar 7, 2017 10:54:16 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113793
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/btresolver.py
r65378 r65967 99 99 asMembers = utils.unpackFile(sDbgArchive, self.sScratchPath, self.fnLog, 100 100 self.fnLog); 101 if asMembers is not None and len(asMembers) > 0:101 if asMembers: 102 102 # Populate the list of debug files. 103 103 for sMember in asMembers: … … 155 155 for sLine in asReport[iLine:]: 156 156 asCandidate = sLine.split(); 157 if len(asCandidate) is5 \157 if len(asCandidate) == 5 \ 158 158 and asCandidate[0].startswith('0x') \ 159 159 and asCandidate[1].startswith('0x') \ … … 300 300 while iLine < len(asReport): 301 301 asMatches = oRegExpPath.findall(asReport[iLine]); 302 if len(asMatches) > 0:302 if asMatches: 303 303 # Line contains the path, extract start address and path to binary 304 304 sAddr = oRegExpAddr.findall(asReport[iLine]); 305 305 sPath = oRegExpBinPath.findall(asReport[iLine]); 306 306 307 if len(sAddr) > 0 and len(sPath) > 0:307 if sAddr and sPath: 308 308 # Construct the path in into the build cache containing the debug symbols 309 309 oRegExp = re.compile(r'\w+\.{0,1}\w*$'); … … 338 338 # and the first one is a number. 339 339 if len(asStackTrace) == 6 and asStackTrace[0].isdigit() \ 340 and (asStackTrace[1].find('VBox') is not -1 or asStackTrace[1].find('VirtualBox') is not-1) \340 and (asStackTrace[1].find('VBox') != -1 or asStackTrace[1].find('VirtualBox') != -1) \ 341 341 and asStackTrace[3].startswith('0x'): 342 342 … … 404 404 asMembers = utils.unpackFile(sDbgArchive, self.sScratchPath, self.fnLog, 405 405 self.fnLog); 406 if asMembers is not None and len(asMembers) > 0:406 if asMembers: 407 407 # Populate the list of debug files. 408 408 for sMember in asMembers: … … 589 589 asListBinaries = self.oResolverOs.getBinaryListWithLoadAddrFromReport(sReport.split('\n')); 590 590 591 if len(asListBinaries) > 0:591 if asListBinaries: 592 592 asArgs = [self.sRTLdrFltPath, ]; 593 593
Note:
See TracChangeset
for help on using the changeset viewer.