VirtualBox

Changeset 65377 in vbox


Ignore:
Timestamp:
Jan 19, 2017 6:22:11 PM (8 years ago)
Author:
vboxsync
Message:

ValidationKit: Another path fix for the back trace resolving, for the OS backends we have to use the build root path to search for the debug archive as the scratch path is space to write temporary files to which is empty initially. Use the old scratch path which will contain the build when creating the host specific resolver backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/btresolver.py

    r65376 r65377  
    9393        fRc = False;
    9494        try:
    95             sDbgArchive = os.path.join(self.sScratchPath, 'bin', 'VirtualBox-dbg.tar.bz2');
     95            sDbgArchive = os.path.join(self.sBuildRoot, 'bin', 'VirtualBox-dbg.tar.bz2');
    9696
    9797            # Extract debug symbol archive if it was found.
     
    192192            asDSymPaths = [];
    193193
    194             for sDirPath, asDirs, _ in os.walk(self.sScratchPath):
     194            for sDirPath, asDirs, _ in os.walk(self.sBuildRoot):
    195195                for sDir in asDirs:
    196196                    if sDir.endswith('.dSYM'):
     
    398398        fRc = False;
    399399        try:
    400             sDbgArchive = os.path.join(self.sScratchPath, 'bin', 'VirtualBoxDebug.tar.bz2');
     400            sDbgArchive = os.path.join(self.sBuildRoot, 'bin', 'VirtualBoxDebug.tar.bz2');
    401401
    402402            # Extract debug symbol archive if it was found.
     
    545545        if fRc:
    546546            if self.sTargetOs == 'linux':
    547                 self.oResolverOs = BacktraceResolverOsLinux(self.sScratchDbgPath, self.sBuildRoot, self.fnLog);
     547                self.oResolverOs = BacktraceResolverOsLinux(self.sScratchDbgPath, self.sScratchPath, self.fnLog);
    548548            elif self.sTargetOs == 'darwin':
    549                 self.oResolverOs = BacktraceResolverOsDarwin(self.sScratchDbgPath, self.sBuildRoot, self.fnLog); # pylint: disable=R0204
     549                self.oResolverOs = BacktraceResolverOsDarwin(self.sScratchDbgPath, self.sScratchPath, self.fnLog); # pylint: disable=R0204
    550550            elif self.sTargetOs == 'solaris':
    551                 self.oResolverOs = BacktraceResolverOsSolaris(self.sScratchDbgPath, self.sBuildRoot, self.fnLog); # pylint: disable=R0204
     551                self.oResolverOs = BacktraceResolverOsSolaris(self.sScratchDbgPath, self.sScratchPath, self.fnLog); # pylint: disable=R0204
    552552            else:
    553553                self.log('The backtrace resolver is not supported on %s' % (self.sTargetOs,));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette