VirtualBox

Ignore:
Timestamp:
Jan 12, 2015 11:20:59 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97577
Message:

Validation Kit: run network cleanup script before install, not after uninstall; exclude testboxharp2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py

    r53561 r53771  
    711711            return False;
    712712
     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
    713731        # Uninstall any previous vbox version first.
    714732        fRc = self._uninstallVBoxOnWindows();
     
    786804            reporter.addLogFile(sLogFile, 'log/uninstaller', "Verbose MSI uninstallation log file");
    787805
    788         # TEMPORARY HACK - START
    789         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 - END
    802 
    803806        self._waitForTestManagerConnectivity(30);
    804807        if fRc is False and os.path.isfile(sLogFile):
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