diff options
Diffstat (limited to 'build-scripts/post-build-lava.py')
-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) } } |