VirtualBox

Changeset 83863 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Apr 20, 2020 3:28:51 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Additions: Use a 15 minutes default timeout for updating sources and installing kernel headers. 5 minutes apparently wasn't enough for such a slow internet connection :-/

File:
1 edited

Legend:

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

    r83860 r83863  
    351351            asEnv += ('http_proxy='  + sHttpProxy, 'https_proxy=' + sHttpsProxy);
    352352
     353        cMsTimeout = 15 * 60 * 1000; # Use a 15 minutes timeout; needed for sloooow internet connections :-/
     354
    353355        # Install Kernel headers, which are required for actually installing the Linux Additions.
    354356        if oTestVm.sKind.startswith('Debian') \
     
    376378                                      fCheckSessionStatus = True);
    377379            if fRc:
    378                 fRc = self.txsRunTest(oTxsSession, 'Updating package sources', 5 * 60 *1000,
     380                fRc = self.txsRunTest(oTxsSession, 'Updating package sources', cMsTimeout,
    379381                                      '/usr/bin/apt-get', ('/usr/bin/apt-get', 'update'),
    380382                                      asAddEnv = asEnv,
    381383                                      fCheckSessionStatus = True);
    382384            if fRc:
    383                 fRc = self.txsRunTest(oTxsSession, 'Installing Kernel headers', 5 * 60 *1000,
     385                fRc = self.txsRunTest(oTxsSession, 'Installing Kernel headers', cMsTimeout,
    384386                                      '/usr/bin/apt-get', ('/usr/bin/apt-get', 'install', '-y', 'linux-headers-generic'),
    385387                                      asAddEnv = asEnv,
    386388                                      fCheckSessionStatus = True);
    387389            if fRc:
    388                 fRc = self.txsRunTest(oTxsSession, 'Installing Guest Additions depdendencies', 5 * 60 *1000, \
     390                fRc = self.txsRunTest(oTxsSession, 'Installing Guest Additions depdendencies', cMsTimeout, \
    389391                                      '/usr/bin/apt-get', ('/usr/bin/apt-get', 'install', '-y', 'build-essential', 'perl'),
    390392                                      asAddEnv = asEnv,
     
    396398        or   oTestVm.sKind.startswith('Cent'):
    397399
    398             fRc = self.txsRunTest(oTxsSession, 'Updating package sources', 5 * 60 *1000,
     400            fRc = self.txsRunTest(oTxsSession, 'Updating package sources', cMsTimeout,
    399401                                               '/usr/bin/yum', ('/usr/bin/yum', 'update'),
    400402                                               asAddEnv = asEnv,
    401403                                               fCheckSessionStatus = True);
    402404            if fRc:
    403                 fRc = self.txsRunTest(oTxsSession, 'Installing Kernel headers', 5 * 60 *1000,
     405                fRc = self.txsRunTest(oTxsSession, 'Installing Kernel headers', cMsTimeout,
    404406                                      '/usr/bin/yum', ('/usr/bin/yum', '-y', 'install', 'kernel-headers'),
    405407                                      asAddEnv = asEnv,
    406408                                      fCheckSessionStatus = True);
    407409            if fRc:
    408                 fRc = self.txsRunTest(oTxsSession, 'Installing Guest Additions depdendencies', 5 * 60 *1000, \
     410                fRc = self.txsRunTest(oTxsSession, 'Installing Guest Additions depdendencies', cMsTimeout, \
    409411                                      '/usr/bin/yum', ('/usr/bin/yum', '-y', 'install', \
    410412                                                   'make', 'automake', 'gcc', 'kernel-devel', 'dkms', 'bzip2', 'perl'),
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