VirtualBox

Changeset 84796 in vbox for trunk


Ignore:
Timestamp:
Jun 11, 2020 3:09:38 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddBasic1: Attempt to make TXS' updating mechanism work with using the combined VISO (GA + VaKit). See comments for details.

File:
1 edited

Legend:

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

    r84769 r84796  
    124124
    125125        # On 6.0 we merge the GAs with the ValidationKit so we can get at FsPerf.
    126         # Note! Not possible to do a dboule import as both images an '/OS2' dir.
    127         #       So, using same dir as with unattended VISOs for the valkit.
     126        #
     127        # Note1: Not possible to do a double import as both images an '/OS2' dir.
     128        #        So, using same dir as with unattended VISOs for the valkit.
     129        #
     130        # Note2: We need to make sure that we don't change the location of the
     131        #        ValidationKit bits of the combined VISO, as this will break TXS' (TestExecService)
     132        #        automatic updating mechanism (uses hardcoded paths, e.g. "{CDROM}/linux/amd64/TestExecService").
     133        #
     134        ## @todo Find a solution for testing the automatic Guest Additions updates, which also looks at {CDROM}s root.
    128135        if self.fpApiVer >= 6.0 and 'sharedfolders' in self.asTests:
    129136            sGaViso = os.path.join(self.sScratchPath, 'AdditionsAndValKit.viso');
     
    132139                           '--import-iso \'%s\' ' \
    133140                           '--push-iso \'%s\' ' \
    134                            '/vboxvalidationkit=/ ' \
     141                           '/vboxadditions=/ ' \
    135142                           '--pop ' \
    136                           % (uuid.uuid4(), sGaIso, self.sVBoxValidationKitIso);
    137             reporter.log2('Using VISO combining GAs and ValKit "%s": %s' % (sGaViso, sVisoContent));
     143                          % (uuid.uuid4(), self.sVBoxValidationKitIso, sGaIso);
     144            reporter.log2('Using VISO combining ValKit and GAs "%s": %s' % (sVisoContent, sGaViso));
    138145            oGaViso = open(sGaViso, 'w');
    139146            oGaViso.write(sVisoContent);
    140147            oGaViso.close();
    141148            sGaIso = sGaViso;
     149
     150            self.sPathGaISO = '${CDROM}/vboxadditions';
     151        else:
     152            self.sPathGaISO = '${CDROM}';
     153
     154        reporter.log2('Path to Guest Additions on ISO is "%s"' % self.sPathGaISO);
    142155
    143156        return self.oTestVmSet.actionConfig(self, eNic0AttachType = eNic0AttachType, sDvdImage = sGaIso);
     
    367380        #
    368381        if oTestVm.sKind not in ('WindowsNT4', 'Windows2000', 'WindowsXP', 'Windows2003'):
    369             fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000, '${CDROM}/cert/VBoxCertUtil.exe',
    370                                   ('${CDROM}/cert/VBoxCertUtil.exe', 'add-trusted-publisher', '${CDROM}/cert/vbox-sha1.cer'),
     382            fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000,
     383                                   '%s/cert/VBoxCertUtil.exe' % self.sPathGaISO,
     384                                  ('%s/cert/VBoxCertUtil.exe' % self.sPathGaISO, 'add-trusted-publisher',
     385                                   '%s/cert/vbox-sha1.cer'    % self.sPathGaISO),
    371386                                  fCheckSessionStatus = True);
    372387            if not fRc:
    373388                reporter.error('Error installing SHA1 certificate');
    374389            else:
    375                 fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000, '${CDROM}/cert/VBoxCertUtil.exe',
    376                                       ('${CDROM}/cert/VBoxCertUtil.exe', 'add-trusted-publisher',
    377                                        '${CDROM}/cert/vbox-sha256.cer'), fCheckSessionStatus = True);
     390                fRc = self.txsRunTest(oTxsSession, 'VBoxCertUtil.exe', 1 * 60 * 1000,
     391                                       '%s/cert/VBoxCertUtil.exe' % self.sPathGaISO,
     392                                      ('%s/cert/VBoxCertUtil.exe' % self.sPathGaISO, 'add-trusted-publisher',
     393                                       '%s/cert/vbox-sha256.cer'  % self.sPathGaISO), fCheckSessionStatus = True);
    378394                if not fRc:
    379395                    reporter.error('Error installing SHA256 certificate');
     
    410426        # Also tell the installer to produce the appropriate log files.
    411427        #
    412         fRc = self.txsRunTest(oTxsSession, 'VBoxWindowsAdditions.exe', 5 * 60 * 1000, '${CDROM}/VBoxWindowsAdditions.exe',
    413                               ('${CDROM}/VBoxWindowsAdditions.exe', '/S', '/l', '/with_autologon'), fCheckSessionStatus = True);
     428        fRc = self.txsRunTest(oTxsSession, 'VBoxWindowsAdditions.exe', 5 * 60 * 1000,
     429                               '%s/VBoxWindowsAdditions.exe' % self.sPathGaISO,
     430                              ('%s/VBoxWindowsAdditions.exe' % self.sPathGaISO, '/S', '/l', '/with_autologon'),
     431                              fCheckSessionStatus = True);
    414432
    415433        # Add the Windows Guest Additions installer files to the files we want to download
     
    468486        fRc = self.txsRunTest(oTxsSession, 'VBoxLinuxAdditions.run', 30 * 60 * 1000,
    469487                              self.getGuestSystemShell(oTestVm),
    470                               (self.getGuestSystemShell(oTestVm), '${CDROM}/VBoxLinuxAdditions.run', '--nox11'));
     488                              (self.getGuestSystemShell(oTestVm), '%s/VBoxLinuxAdditions.run' % self.sPathGaISO, '--nox11'));
    471489        if not fRc:
    472490            iRc = self.getAdditionsInstallerResult(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