VirtualBox

Changeset 95758 in vbox


Ignore:
Timestamp:
Jul 20, 2022 6:13:04 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152468
Message:

ValKit/vboxinstaller.py: there is no reporter.info function. bugref:8691

File:
1 edited

Legend:

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

    r95749 r95758  
    914914            return None; # There shouldn't be anything to uninstall, and if there is, it's not our fault.
    915915
    916         # Install the new one.
     916        fGreaterOrEqual61 = True; ## @todo Parse the version from the executable.
     917
     918        # Gather installer arguments.
    917919        asArgs = [sExe, '-vvvv', '--silent', '--logging'];
    918920        asArgs.extend(['--msiparams', 'REBOOT=ReallySuppress']);
     
    920922        if sVBoxInstallPath is not None:
    921923            asArgs.extend(['INSTALLDIR="%s"' % (sVBoxInstallPath,)]);
    922         fGreaterOrEqual61 = True; ## @todo Parse the version from the executable.
     924
    923925        if fGreaterOrEqual61:
    924926            # We need to explicitly specify the location, otherwise the log would end up at a random location.
     
    927929        else: # Prior to 6.1 the location was hardcoded.
    928930            sLogFile = os.path.join(tempfile.gettempdir(), 'VirtualBox', 'VBoxInstallLog.txt');
     931
    929932        if  fGreaterOrEqual61 \
    930933        and self._fWinInstallTimestampCA:
     
    932935            asArgs.extend(['--force-install-timestamp-ca']);
    933936        elif not fGreaterOrEqual61:
    934             reporter.info('WARNING: We do not have support for the timestamp CA here! Testing might fail.');
     937            reporter.log('WARNING: We do not have support for the timestamp CA here! Testing might fail.');
     938
     939        # Install it.
    935940        fRc2, iRc = self._sudoExecuteSync(asArgs);
    936941        if fRc2 is False:
     
    940945                reporter.error('Installer failed, exit code: %s' % (iRc,));
    941946            fRc = False;
     947
     948        # Add the installer log if present and wait for the network connection to be restore after the filter driver upset.
    942949        if os.path.isfile(sLogFile):
    943950            reporter.addLogFile(sLogFile, 'log/installer', "Verbose MSI installation log file");
    944951        self._waitForTestManagerConnectivity(30);
     952
    945953        return fRc;
    946954
Note: See TracChangeset for help on using the changeset viewer.

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