Tests: app prototype related fixes.

This commit is contained in:
Max Romanov
2021-11-09 15:48:44 +03:00
parent e207415a78
commit 506ec2b825
5 changed files with 19 additions and 3 deletions

View File

@@ -22,7 +22,9 @@ class TestPythonProcman(TestApplicationPython):
output = subprocess.check_output(['ps', 'ax'])
pids = set()
for m in re.findall('.*' + self.app_name, output.decode()):
for m in re.findall(
'.*unit: "' + self.app_name + '" application', output.decode()
):
pids.add(re.search(r'^\s*(\d+)', m).group(1))
return pids