summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-07-01 23:27:45 +0100
committerVincent Sanders <vince@kyllikki.org>2019-07-02 11:29:54 +0100
commite01bbee4056786d08fbaf8f347fa17033a8f3e62 (patch)
treea3d734d405c300f7646268e7d0350b65cebb7be2
parent1ae0ee21eef94f5bc82f64543384698bd0b7ebec (diff)
downloadnetsurf-e01bbee4056786d08fbaf8f347fa17033a8f3e62.tar.gz
netsurf-e01bbee4056786d08fbaf8f347fa17033a8f3e62.tar.bz2
fix monkey testing setting of options to add necessary prefix
-rwxr-xr-xtest/monkey_driver.py6
-rw-r--r--test/monkeyfarmer.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/monkey_driver.py b/test/monkey_driver.py
index 57ad5e4fe..6b2451f37 100755
--- a/test/monkey_driver.py
+++ b/test/monkey_driver.py
@@ -208,9 +208,9 @@ def run_test_step_action_launch(ctx, step):
ctx['browser'] = DriverBrowser(monkey_cmd=[ctx["monkey"]], quiet=True, wrapper=ctx.get("wrapper"))
assert_browser(ctx)
ctx['windows'] = dict()
- for arg in step.get('args', []):
- print(get_indent(ctx) + " " + arg)
- ctx['browser'].pass_options(arg)
+ for option in step.get('options', []):
+ print(get_indent(ctx) + " " + option)
+ ctx['browser'].pass_options(option)
def run_test_step_action_window_new(ctx, step):
diff --git a/test/monkeyfarmer.py b/test/monkeyfarmer.py
index 94943431b..1851888a5 100644
--- a/test/monkeyfarmer.py
+++ b/test/monkeyfarmer.py
@@ -160,7 +160,7 @@ class Browser:
def pass_options(self, *opts):
if len(opts) > 0:
- self.farmer.tell_monkey("OPTIONS " + (" ".join(opts)))
+ self.farmer.tell_monkey("OPTIONS " + (" ".join(['--' + opt for opt in opts])))
def on_monkey_line(self, line):
parts = line.split(" ")