aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/post-build-lava.py
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2012-11-15 17:26:12 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2012-11-15 17:26:12 +0800
commit83391bde08fd294649dec37065bed4b07f60957f (patch)
treeb7ad4997dae93a6c432eddb2a132c60fd675ecbe /build-scripts/post-build-lava.py
parentd71f6cb0db79c64fb9adcbc35604128c0169678a (diff)
pick up the android_ actions from the lava-android-test actions
Diffstat (limited to 'build-scripts/post-build-lava.py')
-rwxr-xr-xbuild-scripts/post-build-lava.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py
index 17acab3..274c0fc 100755
--- a/build-scripts/post-build-lava.py
+++ b/build-scripts/post-build-lava.py
@@ -101,8 +101,8 @@ def gen_lava_android_test_actions(tests=[]):
test_option = test[test.find('(') + 1 : test.rfind(')')]
test = test[:test.find('(')].strip()
- parameters = {'test_name': test}
+ parameters = {}
if not test_option:
test_option = os.environ.get('%s%s' % (test.upper(), OPTION_SUFFIX))
@@ -114,7 +114,14 @@ def gen_lava_android_test_actions(tests=[]):
if timeout_option:
parameters['timeout'] = int(timeout_option)
- if test != REBOOT_TOKEN:
+ if test.startswith('android_'):
+ run_action = {
+ "command": test,
+ "parameters": parameters
+ }
+ actions.append(run_action)
+ elif test != REBOOT_TOKEN:
+ parameters['test_name'] = test
run_action = {
"command": "lava_android_test_run",
"parameters": parameters