mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
Bug 1153290 - Disable crash reporter in mozrunner when running under a debugger, r=ted
This commit is contained in:
parent
55fcaa830f
commit
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)
|
||||
|
Loading…
Reference in New Issue
Block a user