diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2012-11-15 17:26:12 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2012-11-15 17:26:12 +0800 |
commit | 83391bde08fd294649dec37065bed4b07f60957f (patch) | |
tree | b7ad4997dae93a6c432eddb2a132c60fd675ecbe /build-scripts/post-build-lava.py | |
parent | d71f6cb0db79c64fb9adcbc35604128c0169678a (diff) |
pick up the android_ actions from the lava-android-test actions
Diffstat (limited to 'build-scripts/post-build-lava.py')
-rwxr-xr-x | build-scripts/post-build-lava.py | 11 |
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 |