Bugfix: load_images missing space before = 07/30107/2
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 9 Mar 2017 04:17:22 +0000 (20:17 -0800)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 9 Mar 2017 07:10:28 +0000 (23:10 -0800)
load_images.sh arm64 change had issue with shell

load_images.sh: line 34: [: amd64=: unary operator expected

https://build.opnfv.org/ci/view/yardstick/job/yardstick-compass-baremetal-daily-master/894/console

Change-Id: I14f0b8628db7ac90a4966f85e9e7e27a0e0fae02
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/ci/load_images.sh

index e5a7ae0..f81ee1b 100755 (executable)
@@ -31,7 +31,7 @@ if [ "$INSTALLER_TYPE" == "fuel" ]; then
 fi
 
 UCA_HOST="cloud-images.ubuntu.com"
-if [ "${YARD_IMG_ARCH}"= "arm64" ]; then
+if [ "${YARD_IMG_ARCH}" == "arm64" ]; then
     export CLOUD_IMG_URL="http://${UCA_HOST}/${release}/current/${release}-server-cloudimg-${YARD_IMG_ARCH}.tar.gz"
     if ! grep -q "Defaults env_keep += \"CLOUD_IMG_URL\"" "/etc/sudoers"; then
         sudo echo "Defaults env_keep += \"CLOUD_IMG_URL\"" >> /etc/sudoers