aboutsummaryrefslogtreecommitdiff
path: root/build-scripts
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-01-14 21:04:37 +0530
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2014-01-21 00:32:03 +0200
commitf439a6166e2ac715cc293ca379f78de090b23ae6 (patch)
treed7e1d1b9063ada0f9301c69589a556a840045694 /build-scripts
parent7644cbed7901d33222eec659994786e7cb6c061f (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-xbuild-scripts/post-build-lava.py5
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)
}
}