зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365636 - Wait for geckoview crash directory to be created; r=jmaher
This commit is contained in:
Родитель
39b260e512
Коммит
14713f207c
|
@ -179,7 +179,15 @@ class GeckoviewTestRunner:
|
||||||
try:
|
try:
|
||||||
dump_dir = tempfile.mkdtemp()
|
dump_dir = tempfile.mkdtemp()
|
||||||
remote_dir = posixpath.join(self.remote_profile, 'minidumps')
|
remote_dir = posixpath.join(self.remote_profile, 'minidumps')
|
||||||
if not self.dm.dirExists(remote_dir):
|
crash_dir_found = False
|
||||||
|
# wait up to 60 seconds for gecko startup to progress through
|
||||||
|
# crashreporter initialization, in case all tests finished quickly
|
||||||
|
for wait_time in xrange(60):
|
||||||
|
time.sleep(1)
|
||||||
|
if self.dm.dirExists(remote_dir):
|
||||||
|
crash_dir_found = True
|
||||||
|
break
|
||||||
|
if not crash_dir_found:
|
||||||
# If crash reporting is enabled (MOZ_CRASHREPORTER=1), the
|
# If crash reporting is enabled (MOZ_CRASHREPORTER=1), the
|
||||||
# minidumps directory is automatically created when the app
|
# minidumps directory is automatically created when the app
|
||||||
# (first) starts, so its lack of presence is a hint that
|
# (first) starts, so its lack of presence is a hint that
|
||||||
|
|
Загрузка…
Ссылка в новой задаче