diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2014-01-14 21:04:37 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2014-01-15 10:29:19 +0530 |
commit | cd260bf0676dcf9c4aef96e3ebe0c05d06f0ce0f (patch) | |
tree | 7c1a23f8adba315fb066898608d59bfa97a94be2 | |
parent | b1979204c9ef9d468e358d153ce9dd38d49d8d31 (diff) |
Add support to override the bundle streammaster2
Change-Id: I47ccf1fe6d6b84a65ab535991fcd4af0ea2dcb3b
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-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) } } |