Bug 1907637 - feat(wpt): expose `--timeout-multiplier` in `mozharness` r=webgpu-reviewers,teoxoy

Differential Revision: https://phabricator.services.mozilla.com/D216438
This commit is contained in:
Erich Gubler 2024-07-16 11:26:53 +00:00
Родитель 9d9e2d7aae
Коммит 24d0c00e04
1 изменённых файлов: 12 добавлений и 1 удалений

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

@ -214,6 +214,15 @@ class WebPlatformTest(TestingMixin, MercurialScript, CodeCoverageMixin, AndroidM
"help": "Repeat tests (used for confirm-failures) X times.",
},
],
[
["--timeout-multiplier"],
{
"action": "store",
"dest": "timeout_multiplier",
"type": float,
"help": "Sets the timeout multiplier (0.25 for `--backlog` tests by default)",
},
],
]
+ copy.deepcopy(testing_config_options)
+ copy.deepcopy(code_coverage_config_options)
@ -431,7 +440,9 @@ class WebPlatformTest(TestingMixin, MercurialScript, CodeCoverageMixin, AndroidM
cmd.append("--skip-implementation-status=%s" % implementation_status)
# Bug 1643177 - reduce timeout multiplier for web-platform-tests backlog
if c["backlog"]:
if c["timeout_multiplier"]:
cmd.append("--timeout-multiplier=%s" % c["timeout_multiplier"])
elif c["backlog"]:
cmd.append("--timeout-multiplier=0.25")
test_paths = set()