VirtualBox

Ignore:
Timestamp:
Mar 27, 2017 9:48:05 AM (8 years ago)
Author:
vboxsync
Message:

testdriver/vboxinstaller.py: Improve uninstall checking on Windows: check if all services are stopped. Make the rest run return failure if any of them survived, as this is a severe uninstall problem which often causes trouble with the next test.

File:
1 edited

Legend:

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

    r65967 r66258  
    723723
    724724    ## VBox windows services we can query the status of.
    725     kasWindowsServices = [ 'vboxdrv', 'vboxusbmon' ];
     725    kasWindowsServices = [ 'vboxdrv', 'vboxusbmon', 'vboxnetadp', 'vboxnetflt', 'vboxnetadp6', 'vboxnetlwf' ];
    726726
    727727    def _installVBoxOnWindows(self):
     
    751751
    752752        # Uninstall any previous vbox version first.
    753         fRc = self._uninstallVBoxOnWindows();
     753        fRc = self._uninstallVBoxOnWindows(True);
    754754        if fRc is not True:
    755755            return None; # There shouldn't be anything to uninstall, and if there is, it's not our fault.
     
    802802        return cKilled;
    803803
    804     def _uninstallVBoxOnWindows(self):
     804    def _uninstallVBoxOnWindows(self, fIgnoreServices = False):
    805805        """
    806806        Uninstalls VBox on Windows, all installations we find to be on the safe side...
     
    864864        # Log driver service states (should ls \Driver\VBox* and \Device\VBox*).
    865865        for sService in self.kasWindowsServices:
    866             self._sudoExecuteSync(['sc.exe', 'query', sService]);
     866            fRc2, _ = self._sudoExecuteSync(['sc.exe', 'query', sService]);
     867            if fIgnoreServices is False and fRc2 is False:
     868                fRc = False
    867869
    868870        return fRc;
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