aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-short.sh
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-02-08 16:29:15 +0100
committerKhouloud Touil <ktouil@baylibre.com>2019-02-08 16:33:42 +0100
commitae4e29391baee4864c2fc60fc7b913d83159ea1c (patch)
treed71bc7f4020a5925b89223561bdcc6446edaebe6 /jjb/common/include-agl-run-test-short.sh
parentc6d476ca3a2e1087d127c66998f42a7682db481a (diff)
Add weston as a device tag
This patch check the name of the board and add the weston as a device tag if the board name doesn't include the "-nogfx" suffix. Change-Id: I26c69286078b2e7e6dd6447da5be4246bbbea4e7 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-short.sh')
-rw-r--r--jjb/common/include-agl-run-test-short.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/jjb/common/include-agl-run-test-short.sh b/jjb/common/include-agl-run-test-short.sh
index eb28c47c..53f649e3 100644
--- a/jjb/common/include-agl-run-test-short.sh
+++ b/jjb/common/include-agl-run-test-short.sh
@@ -23,7 +23,11 @@ BUILD_VERSION="AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
CREATE_ARGS+="--name AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER "
CREATE_ARGS+="--build-version $BUILD_VERSION "
CREATE_ARGS+="--callback-from ${LAVA_LAB} "
-[[ ! -z $lavacli_tags ]] && CREATE_ARGS+="--device-tags ${lavacli_tags} "
+if [[ ! -z $lavacli_tags ]] && [[ $MACHINE =~ "-nogfx" ]]; then
+ CREATE_ARGS+="--device-tags ${lavacli_tags} "
+else
+ CREATE_ARGS+="--device-tags ${lavacli_tags} "weston" "
+fi
$RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml
if [ $? != 0 ]; then