JIRA: YARDSTICK-325
Change-Id: I6e3aaeb3070c97ab306848b0e7fdc568a486663e
Signed-off-by: JingLu5 <lvjing5@huawei.com>
echo
echo "========== Build yardstick cloud image =========="
echo
echo "========== Build yardstick cloud image =========="
- if [ "$DEPLOY_SCENARIO" == *"-lxd-"* ]; then
+ if [[ "$DEPLOY_SCENARIO" == *"-lxd-"* ]]; then
local cmd="sudo $(which yardstick-img-lxd-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh"
# Build the image. Retry once if the build fails
local cmd="sudo $(which yardstick-img-lxd-modify) $(pwd)/tools/ubuntu-server-cloudimg-modify.sh"
# Build the image. Retry once if the build fails
EXTRA_PARAMS=$EXTRA_PARAMS" --property hw_mem_page_size=large"
fi
EXTRA_PARAMS=$EXTRA_PARAMS" --property hw_mem_page_size=large"
fi
- if [ "$DEPLOY_SCENARIO" == *"-lxd-"* ]; then
+ if [[ "$DEPLOY_SCENARIO" == *"-lxd-"* ]]; then
output=$(eval glance --os-image-api-version 1 image-create \
--name yardstick-trusty-server \
--is-public true --disk-format root-tar \
output=$(eval glance --os-image-api-version 1 image-create \
--name yardstick-trusty-server \
--is-public true --disk-format root-tar \