- Timestamp:
- Aug 12, 2021 7:29:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r90517 r90643 36 36 import os 37 37 import sys 38 import signal 38 39 import subprocess 39 40 import uuid … … 213 214 os.system('taskkill /IM "%s.exe" /F' % (sProcName)); 214 215 else: # Note: killall is not available on older Debians (requires psmisc). 215 os.system('kill -9 $(pidof %s)' % (sProcName)); 216 procPs = subprocess.Popen(['ps', 'ax'], stdout=subprocess.PIPE); # Using the BSD syntax here; MacOS also should understand this. 217 out, _ = procPs.communicate(); 218 for sLine in out.decode("utf-8").splitlines(): 219 if sProcName in sLine: 220 pid = int(sLine.split(None, 1)[0]); 221 reporter.log2('Killing PID %d' % (pid,)); 222 os.kill(pid, signal.SIGKILL); 216 223 217 224 def killHstVkat(self):
Note:
See TracChangeset
for help on using the changeset viewer.

