Bug 1668565 - Update help for --setpref in Raptor/talos r=perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D92069
This commit is contained in:
Ted Campbell 2020-10-02 13:42:33 +00:00
Родитель 6b7522e2fc
Коммит 37b5890c05
4 изменённых файлов: 7 добавлений и 5 удалений

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

@ -315,9 +315,10 @@ class Raptor(TestingMixin, MercurialScript, CodeCoverageMixin, AndroidMixin, Pyt
}], }],
[["--setpref"], { [["--setpref"], {
"action": "append", "action": "append",
"metavar": "PREF=VALUE",
"dest": "extra_prefs", "dest": "extra_prefs",
"default": [], "default": [],
"help": "A preference to set. Must be a key-value pair separated by a ':'." "help": "Set a browser preference. May be used multiple times."
}], }],
[["--cold"], { [["--cold"], {
"action": "store_true", "action": "store_true",

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

@ -163,8 +163,8 @@ class Talos(TestingMixin, MercurialScript, TooltoolMixin,
"metavar": "PREF=VALUE", "metavar": "PREF=VALUE",
"dest": "extra_prefs", "dest": "extra_prefs",
"default": [], "default": [],
"help": "Defines an extra user preference."} "help": "Set a browser preference. May be used multiple times.",
], }],
] + testing_config_options + copy.deepcopy(code_coverage_config_options) ] + testing_config_options + copy.deepcopy(code_coverage_config_options)
def __init__(self, **kwargs): def __init__(self, **kwargs):

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

@ -160,7 +160,8 @@ def create_parser(mach_interface=False):
add_arg('--enable-fission', dest="enable_fission", action="store_true", default=False, add_arg('--enable-fission', dest="enable_fission", action="store_true", default=False,
help="Enable Fission (site isolation) in Gecko.") help="Enable Fission (site isolation) in Gecko.")
add_arg('--setpref', dest="extra_prefs", action="append", default=[], add_arg('--setpref', dest="extra_prefs", action="append", default=[],
help="A preference to set. Must be a key-value pair separated by a ':'.") metavar="PREF=VALUE",
help="Set a browser preference. May be used multiple times.")
if not mach_interface: if not mach_interface:
add_arg('--run-local', dest="run_local", default=False, action="store_true", add_arg('--run-local', dest="run_local", default=False, action="store_true",
help="Flag which indicates if Raptor is running locally or in production") help="Flag which indicates if Raptor is running locally or in production")

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

@ -115,7 +115,7 @@ def create_parser(mach_interface=False):
" Currently used for xperf only.") " Currently used for xperf only.")
add_arg('--setpref', action='append', default=[], dest="extraPrefs", add_arg('--setpref', action='append', default=[], dest="extraPrefs",
metavar="PREF=VALUE", metavar="PREF=VALUE",
help="defines an extra user preference") help="Set a browser preference. May be used multiple times.")
add_arg("--firstNonBlankPaint", action='store_true', dest="fnbpaint", add_arg("--firstNonBlankPaint", action='store_true', dest="fnbpaint",
help="Wait for firstNonBlankPaint event before recording the time") help="Wait for firstNonBlankPaint event before recording the time")
add_arg("--pdfPaint", action='store_true', dest="pdfpaint", add_arg("--pdfPaint", action='store_true', dest="pdfpaint",