VirtualBox

Changeset 92981 in vbox for trunk


Ignore:
Timestamp:
Dec 16, 2021 1:40:00 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Control: Do the TxS version check right before enabling verbose VBoxService logging to have an effective veto not enabling logging due to buggy (too old) TxS versions.

File:
1 edited

Legend:

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

    r92948 r92981  
    16391639
    16401640        # Query the TestExecService (TXS) version first to find out on what we run.
    1641         sTxsVer = self.oTstDrv.txsVer(oSession, oTxsSession, 30 * 100, fIgnoreErrors = True);
     1641        fGotTxsVer = self.oTstDrv.txsVer(oSession, oTxsSession, 30 * 100, fIgnoreErrors = True);
    16421642
    16431643        # Whether to enable verbose logging for VBoxService.
    16441644        fEnableVerboseLogging = False;
    1645 
    1646         # Old TXS versions had a bug which caused an infinite loop when executing stuff containing "$xxx",
    1647         # so check the version here first and skip enabling verbose logging if needed.
    1648         if sTxsVer:
    1649             fEnableVerboseLogging = True;
    16501645
    16511646        # On Windows guests we always can enable verbose logging.
     
    16561651        if not self.oDebug.sImgPath:
    16571652            fEnableVerboseLogging = True;
     1653
     1654        # Old TxS versions had a bug which caused an infinite loop when executing stuff containing "$xxx",
     1655        # so check if we got the version here first and skip enabling verbose logging nonetheless if needed.
     1656        if not fGotTxsVer:
     1657            fEnableVerboseLogging = False;
    16581658
    16591659        #
     
    17031703                if not fRc:
    17041704                    return False;
     1705        else:
     1706            reporter.log('Skipping VBoxService enabling verbose logging (too old TxS service running)')
    17051707
    17061708        #
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