diff options
author | 2017-12-11 11:33:22 +0100 | |
---|---|---|
committer | 2017-12-11 11:33:22 +0100 | |
commit | a9fcea01daf49de7099a85691eb4e9fc3b091b7e (patch) | |
tree | 44dfb60125daba87384711d02f02273989b2ac20 /jjb/common/include-agl-run-test-prepare.sh | |
parent | 1d1a61d43745afa2e7422de8122b3dfa63977624 (diff) |
jjb/common: clean up device names to standardized ones.
Use the device_name table aliases earlier in the CI process. That way
all the scripts are using the correct device name. Avoiding name
mismatch resulting to CI failure.
Change-Id: Ia6f9f8beb06c43a24605abb24e676eaed68cc67e
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-prepare.sh')
-rw-r--r-- | jjb/common/include-agl-run-test-prepare.sh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/jjb/common/include-agl-run-test-prepare.sh b/jjb/common/include-agl-run-test-prepare.sh index 2c6611d9..20456175 100644 --- a/jjb/common/include-agl-run-test-prepare.sh +++ b/jjb/common/include-agl-run-test-prepare.sh @@ -24,8 +24,25 @@ if [ -e releng-scripts/utils ]; then RELENG=$PWD/releng-scripts fi +declare -A agl_lava_releng_aliases +agl_lava_releng_aliases=( + [raspberrypi3]="raspberrypi3-uboot;raspberrypi3" + [qemux86-64]="qemu;qemux86-64" + [m3ulcb-nogfx]="r8a7796-m3ulcb;m3ulcb" + [porter-nogfx]="renesas-porter;renesas-porter" + [dra7xx-evm]="dra7-evm;dra7xx-evm" +) + +OFS=${IFS} +IFS=';' +arr=(${agl_lava_releng_aliases[$MACHINE]}) +IFS=${OFS} +lava_device=${arr[0]} +releng_device=${arr[1]} +# And agl_device=${MACHINE} + CREATE_ARGS="" -CREATE_ARGS+="--machine ${MACHINE} " +CREATE_ARGS+="--machine ${releng_device} " # If it's a release build if [[ $RELEASE_BRANCH ]] && [[ $RELEASE_VERSION ]]; then |