VirtualBox

Ignore:
Timestamp:
Apr 7, 2017 3:42:57 PM (8 years ago)
Author:
vboxsync
Message:

ValidationKit: directly killing the verification dialogs didn't work, but taskkill.exe seems to be able to deal with them

File:
1 edited

Legend:

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

    r66468 r66477  
    802802        return cKilled;
    803803
    804     def _killProcessesByNameAndArgSubstr(self, sName, sArg, sDesc):
    805         """ Kills the named process, if one of its args contains the string. """
     804    def _terminateProcessesByNameAndArgSubstr(self, sName, sArg, sDesc):
     805        """
     806        Terminates the named process using taskkill.exe, if any of its args
     807        contains the passed string.
     808        """
    806809        cKilled = 0;
    807810        aoProcesses = utils.processListAll();
     
    811814
    812815                reporter.log('Killing %s process: %s (%s)' % (sDesc, oProcess.iPid, sBase));
    813                 utils.processKill(oProcess.iPid);
     816                self._executeSync(['taskkill.exe', '/pid', '%u' % (oProcess.iPid,));
    814817                cKilled += 1;
    815818        return cKilled;
     
    844847            while cTimes < 3:
    845848                cTimes += 1;
    846                 cKilled = self._killProcessesByNameAndArgSubstr('rundll32', 'InstallSecurityPromptRunDllW',
    847                                                                 'MSI driver installation');
     849                cKilled = self._terminateProcessesByNameAndArgSubstr('rundll32', 'InstallSecurityPromptRunDllW',
     850                                                                     'MSI driver installation');
    848851                if cKilled <= 0:
    849852                    break;
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