VirtualBox

Ignore:
Timestamp:
Jun 12, 2020 5:11:33 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138624
Message:

Validation Kit/tdAddBasic1: Attempt to make TXS' updating mechanism work with using the combined VISO (GA + VaKit). Follow-up fix to r138600.

File:
1 edited

Legend:

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

    r84817 r84818  
    7474        self.sFileCdWait = '';
    7575        # Path pointing to the Guest Additions on the (V)ISO file.
    76         self.sPathGaISO = '';
     76        self.sGstPathGaPrefix = '';
    7777
    7878        self.addSubTestDriver(SubTstDrvAddGuestCtrl(self));
     
    151151            sGaIso = sGaViso;
    152152
    153             self.sPathGaISO = '${CDROM}/vboxadditions';
     153            self.sGstPathGaPrefix = 'vboxadditions';
    154154        else:
    155             self.sPathGaISO = '${CDROM}';
    156 
    157         reporter.log2('Path to Guest Additions on ISO is "%s"' % self.sPathGaISO);
     155            self.sGstPathGaPrefix = '';
     156
     157
     158        reporter.log2('Path to Guest Additions on ISO is "%s"' % self.sGstPathGaPrefix);
    158159
    159160        return self.oTestVmSet.actionConfig(self, eNic0AttachType = eNic0AttachType, sDvdImage = sGaIso);
     
    211212
    212213        if oTestVm.isWindows():
    213             self.sFileCdWait = ('%s/VBoxWindowsAdditions.exe' % (self.sPathGaISO,));
     214            self.sFileCdWait = ('%s/VBoxWindowsAdditions.exe' % (self.sGstPathGaPrefix,));
    214215        elif oTestVm.isLinux():
    215             self.sFileCdWait = ('%s/VBoxLinuxAdditions.run' % (self.sPathGaISO,));
     216            self.sFileCdWait = ('%s/VBoxLinuxAdditions.run' % (self.sGstPathGaPrefix,));
    216217
    217218        reporter.log2('Waiting for TXS + CD: %s' % (self.sFileCdWait,));
     
    386387        if oTestVm.sKind not in ('WindowsNT4', 'Windows2000', 'WindowsXP', 'Windows2003'):
    387388            fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000,
    388                                    '%s/cert/VBoxCertUtil.exe' % self.sPathGaISO,
    389                                   ('%s/cert/VBoxCertUtil.exe' % self.sPathGaISO, 'add-trusted-publisher',
    390                                    '%s/cert/vbox-sha1.cer'    % self.sPathGaISO),
     389                                   '${CDROM}/%s/cert/VBoxCertUtil.exe' % self.sGstPathGaPrefix,
     390                                  ('${CDROM}/%s/cert/VBoxCertUtil.exe' % self.sGstPathGaPrefix, 'add-trusted-publisher',
     391                                   '${CDROM}/%s/cert/vbox-sha1.cer'    % self.sGstPathGaPrefix),
    391392                                  fCheckSessionStatus = True);
    392393            if not fRc:
     
    394395            else:
    395396                fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000,
    396                                        '%s/cert/VBoxCertUtil.exe' % self.sPathGaISO,
    397                                       ('%s/cert/VBoxCertUtil.exe' % self.sPathGaISO, 'add-trusted-publisher',
    398                                        '%s/cert/vbox-sha256.cer'  % self.sPathGaISO), fCheckSessionStatus = True);
     397                                       '${CDROM}/%s/cert/VBoxCertUtil.exe' % self.sGstPathGaPrefix,
     398                                      ('${CDROM}/%s/cert/VBoxCertUtil.exe' % self.sGstPathGaPrefix, 'add-trusted-publisher',
     399                                       '${CDROM}/%s/cert/vbox-sha256.cer'  % self.sGstPathGaPrefix), fCheckSessionStatus = True);
    399400                if not fRc:
    400401                    reporter.error('Error installing SHA256 certificate');
     
    432433        #
    433434        fRc = self.txsRunTest(oTxsSession, 'VBoxWindowsAdditions.exe', 5 * 60 * 1000,
    434                                '%s/VBoxWindowsAdditions.exe' % self.sPathGaISO,
    435                               ('%s/VBoxWindowsAdditions.exe' % self.sPathGaISO, '/S', '/l', '/with_autologon'),
     435                               '${CDROM}/%s/VBoxWindowsAdditions.exe' % self.sGstPathGaPrefix,
     436                              ('${CDROM}/%s/VBoxWindowsAdditions.exe' % self.sGstPathGaPrefix, '/S', '/l', '/with_autologon'),
    436437                              fCheckSessionStatus = True);
    437438
     
    491492        fRc = self.txsRunTest(oTxsSession, 'VBoxLinuxAdditions.run', 30 * 60 * 1000,
    492493                              self.getGuestSystemShell(oTestVm),
    493                               (self.getGuestSystemShell(oTestVm), '%s/VBoxLinuxAdditions.run' % self.sPathGaISO, '--nox11'));
     494                              (self.getGuestSystemShell(oTestVm),
     495                              '${CDROM}/%s/VBoxLinuxAdditions.run' % self.sGstPathGaPrefix, '--nox11'));
    494496        if not fRc:
    495497            iRc = self.getAdditionsInstallerResult(oTxsSession);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette