Bug 1784176 - Add a feature for manual logins for recording sites. r=perftest-reviewers,AlexandruIonescu

This patch adds the ability to run manual logins for our websites since it can be simpler, and quicker in some cases. At the same time, a bug with the options handling is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D164590
This commit is contained in:
Greg Mierzwinski
2023-03-20 14:42:45 +00:00
parent d587344c68
commit 864d2a6919
4 changed files with 30 additions and 9 deletions

View File

@@ -14,6 +14,6 @@ def add_option(env, name, value, overwrite=False):
env.set_arg("browsertime-extra-options", options)
def add_options(env, options):
for name, value in options:
add_option(env, name, value)
def add_options(env, options, overwrite=False):
for i, (name, value) in enumerate(options):
add_option(env, name, value, overwrite=overwrite and i == 0)

View File

@@ -435,6 +435,7 @@ class BrowsertimeRunner(NodeRunner):
if name == "browsertime.login" and value:
is_login_site = True
self.info(f"Adding extra browsertime argument: --{name} {value}")
args += ["--" + name, value]
if self.get_arg("android"):