From: Kevin Hilman Date: Mon, 5 Feb 2018 18:09:25 +0000 (+0000) Subject: jjb/common: lava-jobs-submit: fix device_type replacement X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=af7af9804b8e3ec5d10eb7a8310293d269e397ba;p=ci-management.git jjb/common: lava-jobs-submit: fix device_type replacement Fix "raspberrypi3-uboot" -> "raspberrypi3-uboot-uboot" type of substitutions. Ensure that the full string (up to EOL) is matched before trying to replace. Change-Id: I2026beb964b12aff1f60441257ceec82b706bab7 Signed-off-by: Kevin Hilman --- diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index 0eccbf6a..3ecb0d12 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -14,7 +14,7 @@ JOB_BASE=$(basename $JOB_FILE .yaml) # Need to hack the LAVA device-type name in the job file JOB_FILE_NEW="${JOB_BASE}_${LAVA_LAB}.yaml" -cat $JOB_FILE | sed "s/device_type: $releng_device/device_type: $lava_device/" > $JOB_FILE_NEW +cat $JOB_FILE | sed "s/device_type: $releng_device$/device_type: $lava_device/" > $JOB_FILE_NEW # # LAVA job submit, get job ID from lava-tool output