aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/post-build-lava.py
diff options
context:
space:
mode:
authorAlexander Sack <asac@linaro.org>2012-06-15 13:49:02 +0200
committerAlexander Sack <asac@linaro.org>2012-06-15 13:49:02 +0200
commit80d7d66abf1ff20574ccb84ec1f5d59e67fc6c7a (patch)
tree6102e3a98613769bf1d4755d9236257cc4531a1d /build-scripts/post-build-lava.py
parentecc0c88c96be861925c15e4d8fe4d65c3ba9f843 (diff)
add support for LAVA_TEST_PLAN token '^' to direct LAVA to doOF a reboot
Diffstat (limited to 'build-scripts/post-build-lava.py')
-rwxr-xr-xbuild-scripts/post-build-lava.py33
1 files changed, 20 insertions, 13 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py
index 4f84adf..3cab40e 100755
--- a/build-scripts/post-build-lava.py
+++ b/build-scripts/post-build-lava.py
@@ -53,16 +53,19 @@ OPTION_SUFFIX = "_OPTION"
def gen_lava_android_test_actions(tests=[]):
actions = []
+ test_actions = [test for test in tests if test != '^']
if len(tests) == 0:
return actions
- inst_action = {
- "command": "lava_android_test_install",
- "parameters": {
- # ensure only unique test names
- "tests": list(set(tests))
- }
- }
- actions.append(inst_action)
+
+ if len(test_actions) > 0:
+ inst_action = {
+ "command": "lava_android_test_install",
+ "parameters": {
+ # ensure only unique test names
+ "tests": list(set(test_actions))
+ }
+ }
+ actions.append(inst_action)
for test in tests:
parameters = {'test_name': test}
@@ -71,11 +74,15 @@ def gen_lava_android_test_actions(tests=[]):
if test_option:
parameters['option'] = test_option
- run_action = {
- "command": "lava_android_test_run",
- "parameters": parameters
- }
- actions.append(run_action)
+ if test != '^':
+ run_action = {
+ "command": "lava_android_test_run",
+ "parameters": parameters
+ }
+ actions.append(run_action)
+ else:
+ actions.append({"command": "boot_linaro_android_image"})
+
return actions