зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1153290 - Disable crash reporter in mozrunner when running under a debugger, r=ted
This commit is contained in:
Родитель
55fcaa830f
Коммит
92ca3bb31c
|
@ -64,4 +64,12 @@ class GeckoRuntimeRunner(BaseRunner):
|
|||
self.profile.reset()
|
||||
assert self.profile.exists(), "%s : failure to reset profile" % self.__class__.__name__
|
||||
|
||||
has_debugger = "debug_args" in kwargs and kwargs["debug_args"]
|
||||
if has_debugger:
|
||||
self.env["MOZ_CRASHREPORTER_DISABLE"] = "1"
|
||||
else:
|
||||
self.env["MOZ_CRASHREPORTER_NO_REPORT"] = "1"
|
||||
self.env["MOZ_CRASHREPORTER"] = "1"
|
||||
|
||||
|
||||
BaseRunner.start(self, *args, **kwargs)
|
||||
|
|
Загрузка…
Ссылка в новой задаче