diff options
author | JingLu5 <lvjing5@huawei.com> | 2016-10-14 12:04:24 +0800 |
---|---|---|
committer | JingLu5 <lvjing5@huawei.com> | 2016-10-14 12:04:24 +0800 |
commit | 26697d1e9432c46c28d345bd655491e78ad8ac7d (patch) | |
tree | 5caf25f4338cbe65a6702013bc90d59a1391060d | |
parent | 1cdc3d7ac2949ffbf21851773314fa73c4ac7a05 (diff) |
Bugfix: fix a bug in lxd scenario
JIRA: YARDSTICK-325
Change-Id: I6e3aaeb3070c97ab306848b0e7fdc568a486663e
Signed-off-by: JingLu5 <lvjing5@huawei.com>
-rwxr-xr-x | tests/ci/load_images.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ci/load_images.sh b/tests/ci/load_images.sh index 8c7caf4d9..49b972777 100755 --- a/tests/ci/load_images.sh +++ b/tests/ci/load_images.sh @@ -25,7 +25,7 @@ build_yardstick_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 @@ -88,7 +88,7 @@ load_yardstick_image() 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 \ |