Bug 1329034 - Increase default timeout on debug browser mochitests; r=jmaher
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1629,19 +1629,21 @@ toolbar#nav-bar {
def buildProfile(self, options):
""" create the profile and add optional chrome bits and files if requested """
if options.flavor == 'browser' and options.timeout:
options.extraPrefs.append(
"testing.browserTestHarness.timeout=%d" %
options.timeout)
# browser-chrome tests use a fairly short default timeout of 45 seconds;
- # this is sometimes too short on asan, where we expect reduced performance.
- if mozinfo.info["asan"] and options.flavor == 'browser' and options.timeout is None:
- self.log.info("Increasing default timeout to 90 seconds on ASAN")
+ # this is sometimes too short on asan and debug, where we expect reduced
+ # performance.
+ if (mozinfo.info["asan"] or mozinfo.info["debug"]) and \
+ options.flavor == 'browser' and options.timeout is None:
+ self.log.info("Increasing default timeout to 90 seconds")
options.extraPrefs.append("testing.browserTestHarness.timeout=90")
options.extraPrefs.append(
"browser.tabs.remote.autostart=%s" %
('true' if options.e10s else 'false'))
if options.strictContentSandbox:
options.extraPrefs.append("security.sandbox.content.level=1")
options.extraPrefs.append(