Bug 1053911 - Uplift Add-on SDK to Firefox r=me
This commit is contained in:
@@ -17,6 +17,7 @@ from cuddlefish.prefs import DEFAULT_COMMON_PREFS
|
||||
from cuddlefish.prefs import DEFAULT_FIREFOX_PREFS
|
||||
from cuddlefish.prefs import DEFAULT_THUNDERBIRD_PREFS
|
||||
from cuddlefish.prefs import DEFAULT_FENNEC_PREFS
|
||||
from cuddlefish.prefs import DEFAULT_NO_CONNECTIONS_PREFS
|
||||
|
||||
# Used to remove noise from ADB output
|
||||
CLEANUP_ADB = re.compile(r'^(I|E)/(stdout|stderr|GeckoConsole)\s*\(\s*\d+\):\s*(.*)$')
|
||||
@@ -30,12 +31,12 @@ PARSEABLE_TEST_NAME = re.compile(r'TEST-START \| ([^\n]+)\n')
|
||||
# The purpose of this timeout is to recover from infinite loops. It should be
|
||||
# longer than the amount of time any test run takes, including those on slow
|
||||
# machines running slow (debug) versions of Firefox.
|
||||
RUN_TIMEOUT = 1.5 * 60 * 60 # 1.5 Hour
|
||||
RUN_TIMEOUT = 5400 #1.5 hours (1.5 * 60 * 60 sec)
|
||||
|
||||
# Maximum time we'll wait for tests to emit output, in seconds.
|
||||
# The purpose of this timeout is to recover from hangs. It should be longer
|
||||
# than the amount of time any test takes to report results.
|
||||
OUTPUT_TIMEOUT = 60 * 5 # five minutes
|
||||
OUTPUT_TIMEOUT = 300 #five minutes (60 * 5 sec)
|
||||
|
||||
def follow_file(filename):
|
||||
"""
|
||||
@@ -419,7 +420,8 @@ def run_app(harness_root_dir, manifest_rdf, harness_options,
|
||||
overload_modules=False,
|
||||
bundle_sdk=True,
|
||||
pkgdir="",
|
||||
enable_e10s=False):
|
||||
enable_e10s=False,
|
||||
no_connections=False):
|
||||
if binary:
|
||||
binary = os.path.expanduser(binary)
|
||||
|
||||
@@ -431,6 +433,9 @@ def run_app(harness_root_dir, manifest_rdf, harness_options,
|
||||
cmdargs = []
|
||||
preferences = dict(DEFAULT_COMMON_PREFS)
|
||||
|
||||
if no_connections:
|
||||
preferences.update(DEFAULT_NO_CONNECTIONS_PREFS)
|
||||
|
||||
if enable_e10s:
|
||||
preferences['browser.tabs.remote.autostart'] = True
|
||||
|
||||
@@ -507,6 +512,8 @@ def run_app(harness_root_dir, manifest_rdf, harness_options,
|
||||
|
||||
env = {}
|
||||
env.update(os.environ)
|
||||
if no_connections:
|
||||
env['MOZ_DISABLE_NONLOCAL_CONNECTIONS'] = '1'
|
||||
env['MOZ_NO_REMOTE'] = '1'
|
||||
env['XPCOM_DEBUG_BREAK'] = 'stack'
|
||||
env['NS_TRACE_MALLOC_DISABLE_STACKS'] = '1'
|
||||
|
||||
Reference in New Issue
Block a user