Bug 1517170 - Ensure correct url on multi-scheme mochitest runs; r=bc

Also log the http/https scheme for the run.
This commit is contained in:
Geoff Brown 2019-01-02 09:50:37 -07:00
Родитель 308d1fcb22
Коммит 77eaff507a
1 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -848,7 +848,6 @@ class MochitestDesktop(object):
self.start_script = None
self.mozLogs = None
self.start_script_kwargs = {}
self.urlOpts = []
self.extraPrefs = {}
if logger_options.get('log'):
@ -920,6 +919,7 @@ class MochitestDesktop(object):
timeout -- per-test timeout in seconds
repeat -- How many times to repeat the test, ie: repeat=1 will run the test twice.
"""
self.urlOpts = []
if not hasattr(options, 'logFile'):
options.logFile = ""
@ -2295,7 +2295,6 @@ toolbar#nav-bar {
# cleanup
if os.path.exists(processLog):
os.remove(processLog)
self.urlOpts = []
if marionette_exception is not None:
exc, value, tb = marionette_exception
@ -2312,7 +2311,6 @@ toolbar#nav-bar {
self.result.clear()
options.manifestFile = None
options.profilePath = None
self.urlOpts = []
def resolve_runtime_file(self, options):
"""
@ -2419,7 +2417,6 @@ toolbar#nav-bar {
stepOptions.keep_open = False
stepOptions.runUntilFailure = True
stepOptions.profilePath = None
self.urlOpts = []
result = self.runTests(stepOptions)
result = result or (-2 if self.countfail > 0 else 0)
self.message_logger.finish()
@ -2431,7 +2428,6 @@ toolbar#nav-bar {
stepOptions.keep_open = False
for i in xrange(VERIFY_REPEAT_SINGLE_BROWSER):
stepOptions.profilePath = None
self.urlOpts = []
result = self.runTests(stepOptions)
result = result or (-2 if self.countfail > 0 else 0)
self.message_logger.finish()
@ -2445,7 +2441,6 @@ toolbar#nav-bar {
stepOptions.keep_open = False
stepOptions.environment.append("MOZ_CHAOSMODE=3")
stepOptions.profilePath = None
self.urlOpts = []
result = self.runTests(stepOptions)
result = result or (-2 if self.countfail > 0 else 0)
self.message_logger.finish()
@ -2458,7 +2453,6 @@ toolbar#nav-bar {
stepOptions.environment.append("MOZ_CHAOSMODE=3")
for i in xrange(VERIFY_REPEAT_SINGLE_BROWSER):
stepOptions.profilePath = None
self.urlOpts = []
result = self.runTests(stepOptions)
result = result or (-2 if self.countfail > 0 else 0)
self.message_logger.finish()
@ -2753,6 +2747,7 @@ toolbar#nav-bar {
if self.urlOpts:
testURL += "?" + "&".join(self.urlOpts)
self.log.info("runtests.py | Running with scheme: {}".format(scheme))
self.log.info("runtests.py | Running with e10s: {}".format(options.e10s))
self.log.info("runtests.py | Running with serviceworker_e10s: {}".format(
mozinfo.info.get('serviceworker_e10s', False)))