summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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(" ")