Bug 1608831 - Use a distinct profile category for geckoview-junit tests; r=snorp

Historically, mochitest and geckoview-junit tests have used the same profile.
This patch splits out a separate profile type for geckoview-junit, with exactly
the same content for now; the geckoview team can follow-up with whatever
profile changes are required for junit.

Differential Revision: https://phabricator.services.mozilla.com/D59775

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Brown 2020-01-13 20:22:02 +00:00
parent 4d3b7a6d20
commit ce17265e96
3 changed files with 5 additions and 4 deletions

View File

@ -118,7 +118,7 @@ class JUnitTestRunner(MochitestDesktop):
self.options.profilePath = self.profile.profile
# Set preferences
self.merge_base_profiles(self.options)
self.merge_base_profiles(self.options, 'geckoview-junit')
if self.fillCertificateDB(self.options):
self.log.error("Certificate integration failed")

View File

@ -1849,7 +1849,7 @@ toolbar#nav-bar {
'ws': options.sslPort,
}
def merge_base_profiles(self, options):
def merge_base_profiles(self, options, category):
"""Merge extra profile data from testing/profiles."""
profile_data_dir = os.path.join(SCRIPT_DIR, 'profile_data')
@ -1862,7 +1862,7 @@ toolbar#nav-bar {
profile_data_dir = path
with open(os.path.join(profile_data_dir, 'profiles.json'), 'r') as fh:
base_profiles = json.load(fh)['mochitest']
base_profiles = json.load(fh)[category]
# values to use when interpolating preferences
interpolation = {
@ -1915,7 +1915,7 @@ toolbar#nav-bar {
# 3) Prefs from --setpref
# Prefs from base profiles
self.merge_base_profiles(options)
self.merge_base_profiles(options, 'mochitest')
# Hardcoded prefs (TODO move these into a base profile)
prefs = {

View File

@ -1,4 +1,5 @@
{
"geckoview-junit": ["base", "common", "unittest-required", "unittest-features"],
"mochitest": ["base", "common", "unittest-required", "unittest-features"],
"profileserver": ["base", "common", "unittest-required", "unittest-features", "profileserver"],
"raptor": ["base", "common", "perf", "raptor"],