VirtualBox

Changeset 84963 in vbox


Ignore:
Timestamp:
Jun 25, 2020 7:26:43 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddBasic1.py: Re-introduced rebooting of Linux guests to (hopefully) get the CD detected there.

File:
1 edited

Legend:

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

    r84949 r84963  
    175175        self.logVmInfo(oVM);
    176176
     177        reporter.testStart('Waiting for TXS');
    177178        if oTestVm.isWindows():
    178179            self.sFileCdWait = ('%s/VBoxWindowsAdditions.exe' % (self.sGstPathGaPrefix,));
     
    180181            self.sFileCdWait = ('%s/VBoxLinuxAdditions.run' % (self.sGstPathGaPrefix,));
    181182
    182         reporter.log2('Waiting for TXS + CD: %s' % (self.sFileCdWait,));
    183 
    184         reporter.testStart('Waiting for TXS + CD');
    185183        oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = True,
    186184                                                                  cMsCdWait = 5 * 60 * 1000,
    187185                                                                  sFileCdWait = self.sFileCdWait);
    188186        reporter.testDone();
     187
     188        # Certain Linux guests don't behave accordingly so that detecting the CD isn't working properly.
     189        # So reboot those guests in the hope that it works finally.
     190        ### @todo Needs investigation; probably only udev or something is broken there (?).
     191        if oTestVm.isLinux():
     192            reporter.testStart('Rebooting and reconnecting to TXS');
     193            fRc, oTxsSession = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, fCdWait = True,
     194                                                                cMsCdWait = 5 * 60 * 1000,
     195                                                                sFileCdWait = self.sFileCdWait);
     196            reporter.testDone();
    189197
    190198        if oSession is not None:
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