VirtualBox

Changeset 93849 in vbox for trunk


Ignore:
Timestamp:
Feb 18, 2022 4:55:24 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/unit tests: Make sure to mount the Validation Kit .ISO so that TxS has the chance to update itself. This is necessary as a lot of our test VMs nowadays have a very old TxS installed which don't understand commands like uploading files to the guest. Uploading files is needed for this test driver, however. bugref:10195

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r93846 r93849  
    506506            elif self.sNicAttachment == 'bridged': eNic0AttachType = vboxcon.NetworkAttachmentType_Bridged;
    507507            else:                                  eNic0AttachType = None;
    508             return self.oTestVmSet.actionConfig(self, eNic0AttachType = eNic0AttachType);
     508
     509            # Make sure to mount the Validation Kit .ISO so that TxS has the chance
     510            # to update itself.
     511            #
     512            # This is necessary as a lot of our test VMs nowadays have a very old TxS
     513            # installed which don't understand commands like uploading files to the guest.
     514            # Uploading files is needed for this test driver, however.
     515            #
     516            ## @todo Get rid of this as soon as we create test VMs in a descriptive (automated) manner.
     517            return self.oTestVmSet.actionConfig(self, eNic0AttachType = eNic0AttachType, \
     518                                                sDvdImage = self.sVBoxValidationKitIso);
    509519
    510520        return True;
     
    560570        self.logVmInfo(oVM);
    561571        # Try waiting for a bit longer (5 minutes) until the CD is available to avoid running into timeouts.
    562         self.oSession, self.oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = False);
     572        self.oSession, self.oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, \
     573                                                                            fCdWait = True, \
     574                                                                            cMsCdWait = 5 * 60 * 1000);
    563575        if self.oSession is not None:
    564576            self.addTask(self.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