VirtualBox

Changeset 66622 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Apr 20, 2017 10:03:06 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114670
Message:

ValidationKit: Kill cdb.exe on Windows during uninstall. No idea why sometimes it hangs around (it is started in utils.getProcessInfo), but its presence blocks scratch directory removal.

File:
1 edited

Legend:

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

    r66618 r66622  
    841841                asProdCodes.append([sProdCode, sProdName]);
    842842
    843         # Before we start uninstalling anything, just ruthlessly kill any
     843        # Before we start uninstalling anything, just ruthlessly kill any cdb,
    844844        # msiexec, drvinst and some rundll process we might find hanging around.
    845845        if self._isProcessPresent('rundll32'):
     
    876876                if cKilled > 0:
    877877                    time.sleep(16); # fudge.
     878
     879        # cdb.exe sometimes stays running (from utils.getProcessInfo), blocking
     880        # the scratch directory. No idea why.
     881        if self._isProcessPresent('cdb'):
     882            cTimes = 0;
     883            while cTimes < 3:
     884                cKilled = self._killProcessesByName('cdb', 'cdb.exe from getProcessInfo');
     885                if cKilled <= 0:
     886                    break;
     887                time.sleep(2); # fudge.
    878888
    879889        # Do the uninstalling.
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