Bug 1154761 - Disable crash dialogs that interfere with debugging in mozrunner, r=ted

This commit is contained in:
James Graham 2015-04-15 16:36:31 +01:00
parent 323b2b17ba
commit b79cd2e20b

View File

@ -27,6 +27,10 @@ class GeckoRuntimeRunner(BaseRunner):
# keeps Firefox attached to the terminal window after it starts
self.env['NO_EM_RESTART'] = '1'
# Disable crash reporting dialogs that interfere with debugging
self.env['GNOME_DISABLE_CRASH_DIALOG'] = '1'
self.env['XRE_NO_WINDOWS_CRASH_DIALOG'] = '1'
# set the library path if needed on linux
if sys.platform == 'linux2' and self.binary.endswith('-bin'):
dirname = os.path.dirname(self.binary)
@ -71,5 +75,4 @@ class GeckoRuntimeRunner(BaseRunner):
self.env["MOZ_CRASHREPORTER_NO_REPORT"] = "1"
self.env["MOZ_CRASHREPORTER"] = "1"
BaseRunner.start(self, *args, **kwargs)