diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-07-24 22:55:25 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-07-24 22:55:25 +0200 |
commit | 9d818e2b172c6e61f77938a4a2f45f3a107103f1 (patch) | |
tree | 7bf345a54910466f3c651390be3c31da7bffa445 /jjb | |
parent | 2895b7c5dd5e411f2e843518ff1d15064810a915 (diff) |
Remove default values and print message for missing variable
Change-Id: I7df5c0a9a36588f41bac00050b06507c89bc92d0
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/common/include-agl-run-test-prepare.sh | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/jjb/common/include-agl-run-test-prepare.sh b/jjb/common/include-agl-run-test-prepare.sh index 4d3f10f6..c70cf45a 100644 --- a/jjb/common/include-agl-run-test-prepare.sh +++ b/jjb/common/include-agl-run-test-prepare.sh @@ -42,18 +42,18 @@ if [ ! -f $ENVFILE ] ; then fi # some defaults -export DEVICE_ARCH=arm -export DEVICE_TYPE=raspberrypi3-uboot -export DEVICE_NAME=raspberrypi3 -export DEVICE_DTB=uImage-bcm2710-rpi-3-b.dtb -export DEVICE_KERNEL=uImage -export DEVICE_INITRAMFS=initramfs-netboot-image-raspberrypi3.ext4 -export DEVICE_INITRAMFS_COMPRESSION=false -export DEVICE_NBDROOT=agl-demo-platform-raspberrypi3.ext4 -export DEVICE_NBDROOT_COMPRESSION=false -export DEVICE_BOOT_METHOD=u-boot -export DEVICE_BOOT_TYPE=bootm -export DEVICE_URL_PREFIX='https://download.automotivelinux.org/AGL/upload/ci/' +#export DEVICE_ARCH=arm +#export DEVICE_TYPE=raspberrypi3-uboot +#export DEVICE_NAME=raspberrypi3 +#export DEVICE_DTB=uImage-bcm2710-rpi-3-b.dtb +#export DEVICE_KERNEL=uImage +#export DEVICE_INITRAMFS=initramfs-netboot-image-raspberrypi3.ext4 +#export DEVICE_INITRAMFS_COMPRESSION=false +#export DEVICE_NBDROOT=agl-demo-platform-raspberrypi3.ext4 +#export DEVICE_NBDROOT_COMPRESSION=false +#export DEVICE_BOOT_METHOD=u-boot +#export DEVICE_BOOT_TYPE=bootm +#export DEVICE_URL_PREFIX='https://download.automotivelinux.org/AGL/upload/ci/' # import device defaults. Format 'a=b' @@ -61,6 +61,8 @@ for i in DEVICE_ARCH DEVICE_TYPE DEVICE_NAME DEVICE_DTB DEVICE_KERNEL DEVICE_INI if grep -q ^$i $ENVFILE ; then X=$(grep $i $ENVFILE | sed -e "s#${i}=##g" -e "s#;.*##g") eval export ${i}=${X} + else + echo "Variable ${i} missing in environment file $ENVFILE" fi done |