Bug 1634909 - [raptor] Remove deprecated browser name from webextension config. r=perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D75928
This commit is contained in:
Henrik Skupin 2020-05-19 20:37:50 +00:00
Родитель aaad4b796c
Коммит 168073622b
3 изменённых файлов: 1 добавлений и 6 удалений

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

@ -15,7 +15,6 @@ LOG = RaptorLogger(component='raptor-gen-test-config')
FILE_CONTENTS = """// this file is auto-generated by raptor, do not edit directly
function getTestConfig() {{
return {{
"browser": "{browser}",
"cs_port": "{control_server_port}",
"test_name": "{test}",
"test_settings_url": "http://{host}:{control_server_port}/json/{test}.json",
@ -30,7 +29,7 @@ function getTestConfig() {{
"""
def gen_test_config(browser, test, cs_port, post_startup_delay,
def gen_test_config(test, cs_port, post_startup_delay,
host='127.0.0.1', b_port=0, debug_mode=0,
browser_cycle=1):
LOG.info("writing test settings into background js, so webext can get it")
@ -40,7 +39,6 @@ def gen_test_config(browser, test, cs_port, post_startup_delay,
config = FILE_CONTENTS.format(
benchmark_port=b_port,
browser=browser,
browser_cycle=browser_cycle,
control_server_port=cs_port,
debug_mode=debug_mode,

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

@ -62,7 +62,6 @@ class WebExtension(Perftest):
self.serve_benchmark_source(test)
gen_test_config(
self.config["app"],
test["name"],
self.control_server.port,
self.post_startup_delay,

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

@ -33,7 +33,6 @@ var newTabPerCycle = false;
// delay (ms) for foregrounding app
var foregroundDelay = 5000;
var browserName;
var isGecko = false;
var isGeckoView = false;
var ext;
@ -745,7 +744,6 @@ async function init() {
testName = config.test_name;
settingsURL = config.test_settings_url;
csPort = config.cs_port;
browserName = config.browser;
benchmarkPort = config.benchmark_port;
postStartupDelay = config.post_startup_delay;
host = config.host;