jjb/common: lava-jobs-submit: fix device_type replacement 53/13353/1
authorKevin Hilman <khilman@baylibre.com>
Mon, 5 Feb 2018 18:09:25 +0000 (18:09 +0000)
committerKevin Hilman <khilman@baylibre.com>
Mon, 5 Feb 2018 18:09:29 +0000 (18:09 +0000)
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 <khilman@baylibre.com>
jjb/common/include-agl-lava-jobs-submit.sh

index 0eccbf6..3ecb0d1 100644 (file)
@@ -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