зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 9157ea42ff41 (bug 914925) for Android/B2G test bustage.
This commit is contained in:
Родитель
ca6b6880ed
Коммит
a01046b97f
|
@ -471,7 +471,7 @@ class Automation(object):
|
|||
os.unlink(pwfilePath)
|
||||
return 0
|
||||
|
||||
def environment(self, env = None, xrePath = None, crashreporter = True, debugger = False):
|
||||
def environment(self, env = None, xrePath = None, crashreporter = True):
|
||||
if xrePath == None:
|
||||
xrePath = self.DIST_BIN
|
||||
if env == None:
|
||||
|
@ -490,7 +490,7 @@ class Automation(object):
|
|||
elif self.IS_WIN32:
|
||||
env["PATH"] = env["PATH"] + ";" + str(ldLibraryPath)
|
||||
|
||||
if crashreporter and not debugger:
|
||||
if crashreporter:
|
||||
env['MOZ_CRASHREPORTER_NO_REPORT'] = '1'
|
||||
env['MOZ_CRASHREPORTER'] = '1'
|
||||
else:
|
||||
|
|
|
@ -108,8 +108,8 @@ class RefTest(object):
|
|||
self.copyExtraFilesToProfile(options, profile)
|
||||
return profile
|
||||
|
||||
def buildBrowserEnv(self, options, profileDir, debugger = False):
|
||||
browserEnv = self.automation.environment(xrePath = options.xrePath, debugger = debugger)
|
||||
def buildBrowserEnv(self, options, profileDir):
|
||||
browserEnv = self.automation.environment(xrePath = options.xrePath)
|
||||
browserEnv["XPCOM_DEBUG_BREAK"] = "stack"
|
||||
|
||||
for v in options.environment:
|
||||
|
@ -141,7 +141,7 @@ class RefTest(object):
|
|||
profileDir = profile.profile # name makes more sense
|
||||
|
||||
# browser environment
|
||||
browserEnv = self.buildBrowserEnv(options, profileDir, debuggerInfo is not None)
|
||||
browserEnv = self.buildBrowserEnv(options, profileDir)
|
||||
|
||||
self.automation.log.info("REFTEST INFO | runreftest.py | Running tests: start.\n")
|
||||
status = self.automation.runApp(None, browserEnv, options.app, profileDir,
|
||||
|
|
|
@ -487,9 +487,9 @@ class Mochitest(MochitestUtilsMixin):
|
|||
self.copyExtraFilesToProfile(options)
|
||||
return manifest
|
||||
|
||||
def buildBrowserEnv(self, options, debugger = False):
|
||||
def buildBrowserEnv(self, options):
|
||||
""" build the environment variables for the specific test and operating system """
|
||||
browserEnv = self.automation.environment(xrePath = options.xrePath, debugger = debugger)
|
||||
browserEnv = self.automation.environment(xrePath = options.xrePath)
|
||||
|
||||
# These variables are necessary for correct application startup; change
|
||||
# via the commandline at your own risk.
|
||||
|
@ -551,7 +551,7 @@ class Mochitest(MochitestUtilsMixin):
|
|||
|
||||
self.leak_report_file = os.path.join(options.profilePath, "runtests_leaks.log")
|
||||
|
||||
browserEnv = self.buildBrowserEnv(options, debuggerInfo is not None)
|
||||
browserEnv = self.buildBrowserEnv(options)
|
||||
if browserEnv is None:
|
||||
return 1
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче