VirtualBox

Ignore:
Timestamp:
Jul 18, 2022 4:37:45 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/vboxinstaller: Tweaked the stub loader MSI logging path for VBox >= 6.1 to use a deterministic location, which then can be uploaded to the test manager.

File:
1 edited

Legend:

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

    r94126 r95715  
    912912        if sVBoxInstallPath is not None:
    913913            asArgs.extend(['INSTALLDIR="%s"' % (sVBoxInstallPath,)]);
    914 
     914        if self.fpApiVer >= 6.1:
     915            # We need to explicitly specify the location, otherwise the log would end up at a random location.
     916            sLogFile = os.path.join(tempfile.gettempdir(), 'VBoxInstallLog.txt');
     917            asArgs.extend(['--msi-log-file', sLogFile]);
     918        else: # Prior to 6.1 the location was hardcoded.
     919            sLogFile = os.path.join(tempfile.gettempdir(), 'VirtualBox', 'VBoxInstallLog.txt');
    915920        fRc2, iRc = self._sudoExecuteSync(asArgs);
    916921        if fRc2 is False:
     
    920925                reporter.error('Installer failed, exit code: %s' % (iRc,));
    921926            fRc = False;
    922 
    923         sLogFile = os.path.join(tempfile.gettempdir(), 'VirtualBox', 'VBoxInstallLog.txt');
    924927        if os.path.isfile(sLogFile):
    925928            reporter.addLogFile(sLogFile, 'log/installer', "Verbose MSI installation log file");
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