mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 809437 - Stop b2g process before installing gecko into an emulator, r=jgriffin
This commit is contained in:
parent
641bdda038
commit
70d974d9be
@ -387,6 +387,15 @@ waitFor(
|
||||
print 'installing gecko binaries...'
|
||||
# need to remount so we can write to /system/b2g
|
||||
self._run_adb(['remount'])
|
||||
self.dm.shellCheckOutput(['stop', 'b2g'])
|
||||
# ensure the b2g process has fully stopped (bug 809437)
|
||||
for i in range(0, 10):
|
||||
time.sleep(1)
|
||||
if self.dm.processExist('b2g') is None:
|
||||
break
|
||||
else:
|
||||
raise TimeoutException("Timeout waiting for the b2g process to terminate")
|
||||
|
||||
for root, dirs, files in os.walk(gecko_path):
|
||||
for filename in files:
|
||||
rel_path = os.path.relpath(os.path.join(root, filename), gecko_path)
|
||||
@ -401,14 +410,6 @@ waitFor(
|
||||
raise
|
||||
|
||||
print 'restarting B2G'
|
||||
self.dm.shellCheckOutput(['stop', 'b2g'])
|
||||
# ensure the b2g process has fully stopped (bug 809437)
|
||||
for i in range(0, 10):
|
||||
time.sleep(1)
|
||||
if self.dm.processExist('b2g') is None:
|
||||
break
|
||||
else:
|
||||
raise TimeoutException("Timeout waiting for the b2g process to terminate")
|
||||
self.dm.shellCheckOutput(['start', 'b2g'])
|
||||
|
||||
if not self.wait_for_port():
|
||||
|
Loading…
Reference in New Issue
Block a user