summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-10-19 15:46:31 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-10-19 15:46:31 +0300
commit5cae899be6a818ead67da1a4eb3326540a53600f (patch)
treea58b9d305097c89d89c300461c8eb8acc525f78b
parent653938978f776786414dde79e3176ca3ee8f33db (diff)
Extract hwpack type in multi-configuration projects
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xlava-submit.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lava-submit.py b/lava-submit.py
index 41cc996..0345e7a 100755
--- a/lava-submit.py
+++ b/lava-submit.py
@@ -143,7 +143,11 @@ def main():
if hwpack_type.startswith('pre-built-images-'):
hwpack_type = hwpack_type[(len('pre-built-images-')):]
if '=' in hwpack_type:
- hwpack_type = hwpack_type[(len('pre-built-images/hwpack=')):]
+ hwpack_type = hwpack_type[(len('pre-built-images/')):]
+ ret_split = dict(
+ token.split('=') for token in hwpack_type.split(','))
+ hwpack_type = ret_split['hwpack']
+
# Rootfs type, default is developer
rootfs_type = os.getenv('ROOTFS_TYPE', 'developer')