VirtualBox

Ignore:
Timestamp:
Jun 25, 2020 12:52:46 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138824
Message:

Validation Kit/tdAddGuestCtrl.py: Skip enabling verbose VBoxService logging if TXS is too old (buggy) to handle this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84932 r84950  
    16351635                return reporter.error('Failed to create directory "%s"!' % (sDir,));
    16361636
     1637        # Query the TestExecService (TXS) version first to find out on what we run.
     1638        sTxsVer = self.oTstDrv.txsVer(oSession, oTxsSession, 30 * 100, fIgnoreErrors = True);
     1639
     1640        # Whether to enable verbose logging for VBoxService.
     1641        fEnableVerboseLogging = True;
     1642
     1643        # Old TXS versions had a bug which caused an infinite loop when executing stuff containing "$xxx",
     1644        # so check the version here first and skip enabling verbose logging if needed.
     1645        if sTxsVer is None:
     1646            fEnableVerboseLogging = False;
     1647
     1648        # If debugging mode is enabled, skip this.
     1649        if self.oDebug.sImgPath:
     1650            fEnableVerboseLogging = False;
     1651
    16371652        #
    16381653        # Enable VBoxService verbose logging.
    16391654        #
    1640         if self.oDebug.sImgPath is None: # If no debugging enabled, skip this.
     1655        if fEnableVerboseLogging:
    16411656            self.oDebug.sGstVBoxServiceLogPath = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), "VBoxService");
    16421657            if oTxsSession.syncMkDirPath(self.oDebug.sGstVBoxServiceLogPath, 0o777) is not True:
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