aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-scripts/post-build-lava.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py
index 9d7e675..443df11 100755
--- a/build-scripts/post-build-lava.py
+++ b/build-scripts/post-build-lava.py
@@ -125,10 +125,31 @@ def gen_custom_actions():
return test_actions
+def gen_monkeyrunner_actions():
+ test_actions = []
+ prefix = 'MONKEY_RUNNER_URL_'
+ test_list = []
+ for var in os.environ.keys():
+ if var.startswith(prefix):
+ test_list.append(var)
+ test_list.sort()
+ for var in test_list:
+ url = os.environ.get(var)
+ action = {
+ "command": "lava_android_test_run_monkeyrunner",
+ "parameters":
+ {
+ "url": url
+ }
+ }
+ test_actions.append(action)
+
+
def gen_test_actions():
test_actions = []
test_actions.extend(gen_custom_actions())
test_actions.extend(gen_test_plan_actions())
+ test_actions.extend(gen_monkeyrunner_actions())
return test_actions