VirtualBox

Ignore:
Timestamp:
Jul 14, 2016 9:09:49 AM (8 years ago)
Author:
vboxsync
Message:

ValidationKit/tdAddBasic1: Fix Don't try to use the TXS session if the reconnect failed

File:
1 edited

Legend:

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

    r61853 r62237  
    248248            (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, cMsTimeout = 3 * 60000);
    249249
    250             # Add the Windows Guest Additions installer files to the files we want to download
    251             # from the guest.
    252             sGuestAddsDir = 'C:/Program Files/Oracle/VirtualBox Guest Additions/';
    253             asLogFile.append(sGuestAddsDir + 'install.log');
    254             # Note: There won't be a install_ui.log because of the silent installation.
    255             asLogFile.append(sGuestAddsDir + 'install_drivers.log');
    256             asLogFile.append('C:/Windows/setupapi.log');
    257 
    258             # Note: setupapi.dev.log only is available since Windows 2000.
    259             if fHaveSetupApiDevLog:
    260                 asLogFile.append('C:/Windows/setupapi.dev.log');
    261 
    262             #
    263             # Download log files.
    264             # Ignore errors as all files above might not be present (or in different locations)
    265             # on different Windows guests.
    266             #
    267             self.txsDownloadFiles(oSession, oTxsSession, asLogFile, fIgnoreErrors = True);
     250            if fRc is True:
     251                # Add the Windows Guest Additions installer files to the files we want to download
     252                # from the guest.
     253                sGuestAddsDir = 'C:/Program Files/Oracle/VirtualBox Guest Additions/';
     254                asLogFile.append(sGuestAddsDir + 'install.log');
     255                # Note: There won't be a install_ui.log because of the silent installation.
     256                asLogFile.append(sGuestAddsDir + 'install_drivers.log');
     257                asLogFile.append('C:/Windows/setupapi.log');
     258
     259                # Note: setupapi.dev.log only is available since Windows 2000.
     260                if fHaveSetupApiDevLog:
     261                    asLogFile.append('C:/Windows/setupapi.dev.log');
     262
     263                #
     264                # Download log files.
     265                # Ignore errors as all files above might not be present (or in different locations)
     266                # on different Windows guests.
     267                #
     268                self.txsDownloadFiles(oSession, oTxsSession, asLogFile, fIgnoreErrors = True);
    268269
    269270        return (fRc, oTxsSession);
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