diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2014-01-14 21:04:37 +0530 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2014-01-21 00:32:03 +0200 |
commit | f439a6166e2ac715cc293ca379f78de090b23ae6 (patch) | |
tree | d7e1d1b9063ada0f9301c69589a556a840045694 /build-scripts | |
parent | 7644cbed7901d33222eec659994786e7cb6c061f (diff) |
Add support to override the bundle stream
Change-Id: I47ccf1fe6d6b84a65ab535991fcd4af0ea2dcb3b
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'build-scripts')
-rwxr-xr-x | build-scripts/post-build-lava.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py index 8e0f04e..be8fb0b 100755 --- a/build-scripts/post-build-lava.py +++ b/build-scripts/post-build-lava.py @@ -68,6 +68,7 @@ DEFAULT_DOWNLOAD_BASE_URL = 'http://snapshots.linaro.org/android/' DEFAULT_TIMEOUT_VALUE = 18000 # Environment variables name +ENV_LAVA_STREAM = 'LAVA_STREAM' ENV_LAVA_SERVER = 'LAVA_SERVER' ENV_LAVA_DEVICE = 'LAVA_DEVICE' ENV_LAVA_DEVICE_TYPE = 'LAVA_DEVICE_TYPE' @@ -527,12 +528,14 @@ def gen_submit_action(): (schema, url_no_schema) = get_schema_and_url() schema_url = '%s://%s' % (schema, url_no_schema) + lava_stream = get_env_var(ENV_LAVA_STREAM, DEFAULT_LAVA_STREAM) + target_product = get_env_var(ENV_TARGET_PRODUCT) submit_action = {"command": "submit_results_on_host", "parameters": { "server": schema_url, "stream": PRODUCT_MAP[target_product].get( - "test_stream", DEFAULT_LAVA_STREAM) + "test_stream", lava_stream) } } |