diff options
Diffstat (limited to 'test/test_python_procman.py')
-rw-r--r-- | test/test_python_procman.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_python_procman.py b/test/test_python_procman.py index 389d0747..a25b84ec 100644 --- a/test/test_python_procman.py +++ b/test/test_python_procman.py @@ -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 |