Changeset 53771 in vbox for trunk/src/VBox/ValidationKit/testdriver
- Timestamp:
- Jan 12, 2015 11:20:59 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97577
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
r53561 r53771 711 711 return False; 712 712 713 # TEMPORARY HACK - START 714 # It seems that running the NDIS cleanup script upon uninstallation is not 715 # a good idea, so let's run it before installing VirtualBox. 716 sHostName = socket.getfqdn(); 717 if fRc and not sHostName.startswith('testboxwin3') \ 718 and not sHostName.startswith('testboxharp2') \ 719 and utils.getHostOsVersion() in ['8', '8.1', '9', '2008Server', '2008ServerR2', '2012Server']: 720 reporter.log('Peforming extra NDIS cleanup...'); 721 sMagicScript = os.path.abspath(os.path.join(g_ksValidationKitDir, 'testdriver', 'win-vbox-net-uninstall.ps1')); 722 fRc2, _ = self._sudoExecuteSync(['powershell.exe', '-Command', 'set-executionpolicy unrestricted']); 723 if not fRc2: 724 reporter.log('set-executionpolicy failed.'); 725 self._sudoExecuteSync(['powershell.exe', '-Command', 'get-executionpolicy']); 726 fRc2, _ = self._sudoExecuteSync(['powershell.exe', '-File', sMagicScript]); 727 if not fRc2: 728 reporter.log('NDIS cleanup failed.'); 729 # TEMPORARY HACK - END 730 713 731 # Uninstall any previous vbox version first. 714 732 fRc = self._uninstallVBoxOnWindows(); … … 786 804 reporter.addLogFile(sLogFile, 'log/uninstaller', "Verbose MSI uninstallation log file"); 787 805 788 # TEMPORARY HACK - START789 sHostName = socket.getfqdn();790 if fRc and not sHostName.startswith('testboxwin3') \791 and utils.getHostOsVersion() in ['8', '8.1', '9', '2008Server', '2008ServerR2', '2012Server']:792 reporter.log('Peforming extra NDIS cleanup...');793 sMagicScript = os.path.abspath(os.path.join(g_ksValidationKitDir, 'testdriver', 'win-vbox-net-uninstall.ps1'));794 fRc2, _ = self._sudoExecuteSync(['powershell.exe', '-Command', 'set-executionpolicy unrestricted']);795 if not fRc2:796 reporter.log('set-executionpolicy failed.');797 self._sudoExecuteSync(['powershell.exe', '-Command', 'get-executionpolicy']);798 fRc2, _ = self._sudoExecuteSync(['powershell.exe', '-File', sMagicScript]);799 if not fRc2:800 reporter.log('NDIS cleanup failed.');801 # TEMPORARY HACK - END802 803 806 self._waitForTestManagerConnectivity(30); 804 807 if fRc is False and os.path.isfile(sLogFile):
Note:
See TracChangeset
for help on using the changeset viewer.