зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1075487 - make get_b2g_pid get the right pid, r=davehunt,mdas
This commit is contained in:
Родитель
5dfb7f8f8c
Коммит
36e2a81120
|
@ -27,9 +27,9 @@ def get_dm(marionette=None,**kwargs):
|
|||
|
||||
def get_b2g_pid(dm):
|
||||
b2g_output = dm.shellCheckOutput(['b2g-ps'])
|
||||
pid_re = re.compile(r"""[\s\S]*root[\s]*([\d]+)[\s]*(?:[\w]*[\s]*){6}/system/b2g/b2g""")
|
||||
if '/system/b2g/b2g' in b2g_output:
|
||||
pid = pid_re.match(b2g_output)
|
||||
pid_re = re.compile(r"""b2g[\s]+0[\s]+root\s+([\d]+).*/system/b2g/b2g""")
|
||||
pid = pid_re.match(b2g_output)
|
||||
if pid:
|
||||
return pid.group(1)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче