mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
monkey_driver: Add launch-time option support
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
0b4d1fbb1b
commit
c88106e02a
@ -234,8 +234,12 @@ def run_test_step_action_launch(ctx, step):
|
|||||||
print(get_indent(ctx) + "Action: " + step["action"])
|
print(get_indent(ctx) + "Action: " + step["action"])
|
||||||
assert ctx.get('browser') is None
|
assert ctx.get('browser') is None
|
||||||
assert ctx.get('windows') is None
|
assert ctx.get('windows') is None
|
||||||
|
monkey_cmd = [ctx["monkey"]]
|
||||||
|
for option in step.get('launch-options', []):
|
||||||
|
monkey_cmd.append("--{}".format(option))
|
||||||
|
print(get_indent(ctx) + " " + "Command line: " + repr(monkey_cmd))
|
||||||
ctx['browser'] = DriverBrowser(
|
ctx['browser'] = DriverBrowser(
|
||||||
monkey_cmd=[ctx["monkey"]],
|
monkey_cmd=monkey_cmd,
|
||||||
quiet=True,
|
quiet=True,
|
||||||
wrapper=ctx.get("wrapper"))
|
wrapper=ctx.get("wrapper"))
|
||||||
assert_browser(ctx)
|
assert_browser(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user