summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_procman.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_python_procman.py')
-rw-r--r--test/test_python_procman.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_python_procman.py b/test/test_python_procman.py
index a95c5680..a25b84ec 100644
--- a/test/test_python_procman.py
+++ b/test/test_python_procman.py
@@ -4,7 +4,6 @@ import subprocess
import time
import pytest
-
from unit.applications.lang.python import TestApplicationPython
from unit.option import option
@@ -23,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
@@ -265,7 +266,8 @@ class TestPythonProcman(TestApplicationPython):
assert len(self.pids_for_process()) == 1, 'longstarts == 1'
- pid = self.get()['body']
+ self.get()
+
pids = self.pids_for_process()
assert len(pids) == 2, 'longstarts == 2'