Changeset 66477 in vbox for trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
- Timestamp:
- Apr 7, 2017 3:42:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
r66468 r66477 802 802 return cKilled; 803 803 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 """ 806 809 cKilled = 0; 807 810 aoProcesses = utils.processListAll(); … … 811 814 812 815 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,)); 814 817 cKilled += 1; 815 818 return cKilled; … … 844 847 while cTimes < 3: 845 848 cTimes += 1; 846 cKilled = self._ killProcessesByNameAndArgSubstr('rundll32', 'InstallSecurityPromptRunDllW',847 'MSI driver installation');849 cKilled = self._terminateProcessesByNameAndArgSubstr('rundll32', 'InstallSecurityPromptRunDllW', 850 'MSI driver installation'); 848 851 if cKilled <= 0: 849 852 break;
Note:
See TracChangeset
for help on using the changeset viewer.