- Timestamp:
- Jun 11, 2020 3:09:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py
r84769 r84796 124 124 125 125 # 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. 128 135 if self.fpApiVer >= 6.0 and 'sharedfolders' in self.asTests: 129 136 sGaViso = os.path.join(self.sScratchPath, 'AdditionsAndValKit.viso'); … … 132 139 '--import-iso \'%s\' ' \ 133 140 '--push-iso \'%s\' ' \ 134 '/vbox validationkit=/ ' \141 '/vboxadditions=/ ' \ 135 142 '--pop ' \ 136 % (uuid.uuid4(), s GaIso, 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)); 138 145 oGaViso = open(sGaViso, 'w'); 139 146 oGaViso.write(sVisoContent); 140 147 oGaViso.close(); 141 148 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); 142 155 143 156 return self.oTestVmSet.actionConfig(self, eNic0AttachType = eNic0AttachType, sDvdImage = sGaIso); … … 367 380 # 368 381 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), 371 386 fCheckSessionStatus = True); 372 387 if not fRc: 373 388 reporter.error('Error installing SHA1 certificate'); 374 389 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); 378 394 if not fRc: 379 395 reporter.error('Error installing SHA256 certificate'); … … 410 426 # Also tell the installer to produce the appropriate log files. 411 427 # 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); 414 432 415 433 # Add the Windows Guest Additions installer files to the files we want to download … … 468 486 fRc = self.txsRunTest(oTxsSession, 'VBoxLinuxAdditions.run', 30 * 60 * 1000, 469 487 self.getGuestSystemShell(oTestVm), 470 (self.getGuestSystemShell(oTestVm), ' ${CDROM}/VBoxLinuxAdditions.run', '--nox11'));488 (self.getGuestSystemShell(oTestVm), '%s/VBoxLinuxAdditions.run' % self.sPathGaISO, '--nox11')); 471 489 if not fRc: 472 490 iRc = self.getAdditionsInstallerResult(oTxsSession);
Note:
See TracChangeset
for help on using the changeset viewer.