VirtualBox

Changeset 99506 in vbox


Ignore:
Timestamp:
Apr 21, 2023 2:40:57 PM (20 months ago)
Author:
vboxsync
Message:

Validation Kit/Guest Additions: Better fix for r156983 (Added kludge for getting the Guest Additions on tst-rhel5 to install. This ancient test VM has Guest Additions 3.0.14 (pre-)installed already).

File:
1 edited

Legend:

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

    r99490 r99506  
    509509                reporter.testFailure('Unable to deploy Secure Boot signing keys to the guest');
    510510
    511         # Make sure to add "--nox11" to the makeself wrapper in order to not getting any blocking
    512         # xterm window spawned.
    513         asArgs = [ '--nox11' ];
     511        # Construct arguments for installer.
     512        asArgs = [ self.getGuestSystemShell(oTestVm), '${CDROM}/%s/VBoxLinuxAdditions.run' % self.sGstPathGaPrefix ];
     513
     514        # Make sure to add "--nox11" to the makeself wrapper in order to not getting any blocking xterm window spawned.
     515        asArgs.extend( [ '--nox11' ] );
    514516
    515517        # Ugly kludge to make tst-rhel5 (or any other borked test VM) work which (accidentally?) have old(er) Guest Additions
     
    518520        # This forces our installer (inside the makeself wrapper, hence the "--") to install, regardless of whether there already
    519521        # are any (older) Guest Additions installed already.
     522        fForceInstallation = False;
    520523        if oTestVm.sVmName == "tst-rhel5":
     524            fForceInstallation = True;
     525
     526        if fForceInstallation:
    521527            asArgs.extend( [ "--", "--force" ] );
    522528
    523529        fRc = self.txsRunTest(oTxsSession, 'VBoxLinuxAdditions.run', 30 * 60 * 1000,
    524                               self.getGuestSystemShell(oTestVm),
    525                               (self.getGuestSystemShell(oTestVm),
    526                               '${CDROM}/%s/VBoxLinuxAdditions.run' % self.sGstPathGaPrefix, asArgs));
     530                              self.getGuestSystemShell(oTestVm), asArgs);
    527531        if fRc and oTxsSession.isSuccess():
    528532            reporter.log('Installation completed');
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