Changeset 90754 in vbox for trunk/src/VBox/ValidationKit/tests/audio
- Timestamp:
- Aug 19, 2021 4:01:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r90753 r90754 280 280 procPs = subprocess.Popen(['ps', 'ax'], stdout=subprocess.PIPE); 281 281 out, err = procPs.communicate(); 282 reporter.log2('PS stderr:'); 283 for sLine in err.decode("utf-8").splitlines(): 284 reporter.log2(sLine); 285 reporter.log2('PS stdout:'); 286 for sLine in out.decode("utf-8").splitlines(): 287 reporter.log2(sLine); 288 if sProcName in sLine: 289 pid = int(sLine.split(None, 1)[0]); 290 reporter.log('Killing PID %d' % (pid,)); 291 os.kill(pid, signal.SIGKILL); # pylint: disable=no-member 282 if err: 283 reporter.log2('PS stderr:'); 284 for sLine in err.decode("utf-8").splitlines(): 285 reporter.log2(sLine); 286 if out: 287 reporter.log2('PS stdout:'); 288 for sLine in out.decode("utf-8").splitlines(): 289 reporter.log2(sLine); 290 if sProcName in sLine: 291 pid = int(sLine.split(None, 1)[0]); 292 reporter.log('Killing PID %d' % (pid,)); 293 os.kill(pid, signal.SIGKILL); # pylint: disable=no-member 292 294 293 295 def killHstVkat(self):
Note:
See TracChangeset
for help on using the changeset viewer.