Bug 1434219 - Use current Marionette prefs in reftest harness. r=gbrown

The marionette.defaultPrefs.port and marionette.logging preferences
have been deprecated for some time.  We want to move the reftest
harness to use marionette.port and marionette.log.level.

All officially recognised preferences are listed in
testing/marionette/prefs/marionette.js.

MozReview-Commit-ID: H1MHO7Iik4X

--HG--
extra : rebase_source : 883ee2eed272f1a64015cbaaebcfa5dbb45d91bf
This commit is contained in:
Andreas Tolfsen 2018-01-30 14:01:58 +00:00
parent 071f758a37
commit 7bcc9c5128

View File

@ -331,12 +331,12 @@ class RefTest(object):
prefs['reftest.nocache'] = True
if options.marionette:
port = options.marionette.split(':')[1]
prefs['marionette.defaultPrefs.port'] = int(port)
port = options.marionette.split(":")[1]
prefs["marionette.port"] = int(port)
# Enable tracing output for detailed failures in case of
# failing connection attempts, and hangs (bug 1397201)
prefs['marionette.logging'] = "TRACE"
prefs["marionette.log.level"] = "TRACE"
preference_file = os.path.join(here, 'reftest-preferences.js')
prefs.update(mozprofile.Preferences.read_prefs(preference_file))